Share via


ManifestReader.ReadManifest Method

Definition

Reads the specified manifest XML and returns an object representation.

Overloads

ReadManifest(Stream, Boolean)

Reads the specified manifest XML and returns an object representation.

ReadManifest(String, Boolean)

Reads the specified manifest XML and returns an object representation.

ReadManifest(String, Stream, Boolean)

Reads the specified manifest XML and returns an object representation.

ReadManifest(String, String, Boolean)

Reads the specified manifest XML and returns an object representation.

ReadManifest(Stream, Boolean)

Source:
ManifestReader.cs

Reads the specified manifest XML and returns an object representation.

public:
 static Microsoft::Build::Tasks::Deployment::ManifestUtilities::Manifest ^ ReadManifest(System::IO::Stream ^ input, bool preserveStream);
public static Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest ReadManifest (System.IO.Stream input, bool preserveStream);
[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
public static Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest ReadManifest (System.IO.Stream input, bool preserveStream);
static member ReadManifest : System.IO.Stream * bool -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]
static member ReadManifest : System.IO.Stream * bool -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
Public Shared Function ReadManifest (input As Stream, preserveStream As Boolean) As Manifest

Parameters

input
Stream

Specifies an input stream.

preserveStream
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.

Returns

A base object representation of the manifest. Can be cast to AssemblyManifest, ApplicationManifest, or DeployManifest to access more specific functionality.

Attributes

Applies to

ReadManifest(String, Boolean)

Source:
ManifestReader.cs

Reads the specified manifest XML and returns an object representation.

public:
 static Microsoft::Build::Tasks::Deployment::ManifestUtilities::Manifest ^ ReadManifest(System::String ^ path, bool preserveStream);
public static Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest ReadManifest (string path, bool preserveStream);
static member ReadManifest : string * bool -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
Public Shared Function ReadManifest (path As String, preserveStream As Boolean) As Manifest

Parameters

path
String

The name of the input file.

preserveStream
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. This option is not honored if the specified input file is an embedded manfiest in a PE.

Returns

A base object representation of the manifest. Can be cast to AssemblyManifest, ApplicationManifest, or DeployManifest to access more specific functionality.

Applies to

ReadManifest(String, Stream, Boolean)

Source:
ManifestReader.cs

Reads the specified manifest XML and returns an object representation.

public:
 static Microsoft::Build::Tasks::Deployment::ManifestUtilities::Manifest ^ ReadManifest(System::String ^ manifestType, System::IO::Stream ^ input, bool preserveStream);
public static Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest ReadManifest (string manifestType, System.IO.Stream input, bool preserveStream);
static member ReadManifest : string * System.IO.Stream * bool -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
Public Shared Function ReadManifest (manifestType As String, input As Stream, preserveStream As Boolean) As Manifest

Parameters

manifestType
String

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

input
Stream

Specifies an input stream.

preserveStream
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.

Returns

A base object representation of the manifest. Can be cast to AssemblyManifest, ApplicationManifest, or DeployManifest to access more specific functionality.

Applies to

ReadManifest(String, String, Boolean)

Source:
ManifestReader.cs

Reads the specified manifest XML and returns an object representation.

public:
 static Microsoft::Build::Tasks::Deployment::ManifestUtilities::Manifest ^ ReadManifest(System::String ^ manifestType, System::String ^ path, bool preserveStream);
public static Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest ReadManifest (string manifestType, string path, bool preserveStream);
static member ReadManifest : string * string * bool -> Microsoft.Build.Tasks.Deployment.ManifestUtilities.Manifest
Public Shared Function ReadManifest (manifestType As String, path As String, preserveStream As Boolean) As Manifest

Parameters

manifestType
String

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

path
String

The name of the input file.

preserveStream
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. This option is not honored if the specified input file is an embedded manfiest in a PE.

Returns

A base object representation of the manifest. Can be cast to AssemblyManifest, ApplicationManifest, or DeployManifest to access more specific functionality.

Applies to