Method GetBuildArtifact
GetBuildArtifact(BuildPipelineBase, Type)
Get the first build artifact value that is assignable to specified type.
Declaration
public IBuildArtifact GetBuildArtifact(BuildPipelineBase pipeline, Type buildArtifactType)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildPipelineBase | pipeline | The build pipeline. |
| Type | buildArtifactType | The build artifact type. |
Returns
| Type | Description |
|---|---|
| IBuildArtifact | A build artifact value if found, null otherwise. |
GetBuildArtifact<T>(BuildPipelineBase)
Get the first build artifact value that is assignable to specified type.
Declaration
public T GetBuildArtifact<T>(BuildPipelineBase pipeline) where T : class, IBuildArtifact, new()
Parameters
| Type | Name | Description |
|---|---|---|
| BuildPipelineBase | pipeline | The build pipeline. |
Returns
| Type | Description |
|---|---|
| T | A build artifact value if found, null otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T | The build artifact type. |
GetBuildArtifact(Type)
Get the first build artifact value that is assignable to specified type.
Declaration
public IBuildArtifact GetBuildArtifact(Type buildArtifactType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | buildArtifactType | The build artifact type. |
Returns
| Type | Description |
|---|---|
| IBuildArtifact | A build artifact value if found, null otherwise. |
GetBuildArtifact<T>()
Get the first build artifact value that is assignable to specified type.
Declaration
public T GetBuildArtifact<T>() where T : class, IBuildArtifact, new()
Returns
| Type | Description |
|---|---|
| T | A build artifact value if found, null otherwise. |
Type Parameters
| Name | Description |
|---|---|
| T | The build artifact type. |