Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

AssemblyBuilder::GetManifestResourceStream Method (Type^, String^)

 

Loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public:
virtual Stream^ GetManifestResourceStream(
	Type^ type,
	String^ name
) override

Parameters

type
Type: System::Type^

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

name
Type: System::String^

The name of the manifest resource being requested.

Return Value

Type: System.IO::Stream^

A Stream representing this manifest resource.

Exception Condition
NotSupportedException

This method is not currently supported.

SecurityException

The caller does not have the required permission.

The returned Stream has its file pointer set to the beginning of the resource.

If the full name of type is "MyNameSpace.MyClasses" and name is "Dot", GetManifestResourceStream will search for a resource named MyNameSpace.Dot.

ReflectionPermission

when invoked late-bound through mechanisms such as Type::InvokeMember. Associated enumeration: ReflectionPermissionFlag::MemberAccess.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft