Method HasBuildArtifact
HasBuildArtifact(BuildPipelineBase, Type)
Determine if a build artifact that is assignable to the specified type is present.
Declaration
public bool HasBuildArtifact(BuildPipelineBase pipeline, Type buildArtifactType)
Parameters
Type | Name | Description |
---|---|---|
BuildPipelineBase | pipeline | The build pipeline. |
Type | buildArtifactType | The build artifact type. |
Returns
Type | Description |
---|---|
bool | true if a matching build artifact is found, false otherwise. |
HasBuildArtifact<T>(BuildPipelineBase)
Determine if a build artifact that is assignable to the specified type is present.
Declaration
public bool HasBuildArtifact<T>(BuildPipelineBase pipeline) where T : class, IBuildArtifact, new()
Parameters
Type | Name | Description |
---|---|---|
BuildPipelineBase | pipeline | The build pipeline. |
Returns
Type | Description |
---|---|
bool |
Type Parameters
Name | Description |
---|---|
T | The build artifact type. |
HasBuildArtifact(Type)
Determine if a build artifact that is assignable to the specified type is present.
Declaration
public bool HasBuildArtifact(Type buildArtifactType)
Parameters
Type | Name | Description |
---|---|---|
Type | buildArtifactType | The build artifact type. |
Returns
Type | Description |
---|---|
bool | true if a matching build artifact is found, false otherwise. |
HasBuildArtifact<T>()
Determine if a build artifact that is assignable to the specified type is present.
Declaration
public bool HasBuildArtifact<T>() where T : class, IBuildArtifact, new()
Returns
Type | Description |
---|---|
bool | true if a matching build artifact is found, false otherwise. |
Type Parameters
Name | Description |
---|---|
T | The build artifact type. |