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