_Assembly.GetManifestResourceStream Method

Definition

Provides COM objects with version-independent access to the GetManifestResourceStream methods.

Overloads

GetManifestResourceStream(Type, String)

Provides COM objects with version-independent access to the GetManifestResourceStream(Type, String) method.

GetManifestResourceStream(String)

Provides COM objects with version-independent access to the GetManifestResourceStream(String) method.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetManifestResourceStream methods load the specified manifest resource from this assembly.

GetManifestResourceStream(Type, String)

Provides COM objects with version-independent access to the GetManifestResourceStream(Type, String) method.

C#
public System.IO.Stream GetManifestResourceStream(Type type, string name);

Parameters

type
Type

The type whose namespace is used to scope the manifest resource name.

name
String

The case-sensitive name of the manifest resource being requested.

Returns

A Stream representing this manifest resource.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetManifestResourceStream method loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

GetManifestResourceStream(String)

Provides COM objects with version-independent access to the GetManifestResourceStream(String) method.

C#
public System.IO.Stream GetManifestResourceStream(string name);

Parameters

name
String

The case-sensitive name of the manifest resource being requested.

Returns

A Stream representing this manifest resource.

Remarks

This method is for access to managed classes from unmanaged code, and should not be called from managed code.

The GetManifestResourceStream method loads the specified manifest resource from this assembly.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1