Export (0) Print
Expand All

ManifestReader.ReadManifest Method (String, String, Boolean)

Reads the specified manifest XML and returns an object representation.

Namespace:  Microsoft.Build.Tasks.Deployment.ManifestUtilities
Assembly:  Microsoft.Build.Tasks.v4.0 (in Microsoft.Build.Tasks.v4.0.dll)

public static Manifest ReadManifest(
	string manifestType,
	string path,
	bool preserveStream
)

Parameters

manifestType
Type: System.String

Specifies the expected type of the manifest. Valid values are AssemblyManifest, ApplicationManifest, or DeployManifest.

path
Type: System.String

The path name of the input file.

preserveStream
Type: System.Boolean

Specifies whether to preserve the input stream in the InputStream property of the resulting manifest object. Used by ManifestWriter to reconstitute input which is not represented in the object representation.

Return Value

Type: Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
A Manifest object representation of the manifest. Can be cast to AssemblyManifest, ApplicationManifest, or DeployManifest to access more specific functionality.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft