NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Assembly.GetManifestResourceStream (Type, String)

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

[Visual Basic]
Overloads Overridable Public Function GetManifestResourceStream( _
   ByVal type As Type, _
   ByVal name As String _
) As Stream
[C#]
public virtual Stream GetManifestResourceStream(
   Type type,
   string name
);
[C++]
public: virtual Stream* GetManifestResourceStream(
   Type* type,
   String* name
);
[JScript]
public function GetManifestResourceStream(
   type : Type,
   name : String
) : Stream;

Parameters

type
The type whose namespace is used to scope the resource name.
name
The name of the resource being requested.

Return Value

A Stream representing this resource.

Remarks

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

For example, if the full name of type is "MyNameSpace.Foo" and name is "Bar", System.Reflection.Assembly.GetManifestResourceName will search for a resource named "MyNameSpace.Bar".

See Also

Assembly Class | Assembly Members | System.Reflection Namespace | Assembly.GetManifestResourceStream Overload List