BuildMaster SDK Reference
Version:

OpenArtifactFile(PromotionContext context, string fileName) Method

Returns a stream backed by a file in an artifact if the file was found; otherwise returns null (Nothing in Visual Basic).

Syntax

protected System.IO.Stream OpenArtifactFile(PromotionContext context, string fileName)

Parameters

context
Type: PromotionContext

Current promotion context.

fileName
Type: string

Name of the file in the artifact.

Returns

Stream backed by a file in an artifact if the file was found; otherwise null (Nothing in Visual Basic).