_Assembly.GetManifestResourceStream 方法
定义
为 COM 对象提供对 GetManifestResourceStream 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetManifestResourceStream methods.
重载
| GetManifestResourceStream(Type, String) |
为 COM 对象提供对 GetManifestResourceStream(Type, String) 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetManifestResourceStream(Type, String) method. |
| GetManifestResourceStream(String) |
为 COM 对象提供对 GetManifestResourceStream(String) 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetManifestResourceStream(String) method. |
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.
GetManifestResourceStream方法从此程序集加载指定的清单资源。The GetManifestResourceStream methods load the specified manifest resource from this assembly.
GetManifestResourceStream(Type, String)
为 COM 对象提供对 GetManifestResourceStream(Type, String) 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetManifestResourceStream(Type, String) method.
public:
System::IO::Stream ^ GetManifestResourceStream(Type ^ type, System::String ^ name);
public System.IO.Stream GetManifestResourceStream (Type type, string name);
abstract member GetManifestResourceStream : Type * string -> System.IO.Stream
Public Function GetManifestResourceStream (type As Type, name As String) As Stream
参数
- 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.
返回
表示此清单资源的 Stream。A Stream representing this manifest resource.
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.
GetManifestResourceStream方法从此程序集加载指定的清单资源,这些资源由指定类型的命名空间限定。The GetManifestResourceStream method loads the specified manifest resource, scoped by the namespace of the specified type, from this assembly.
另请参阅
适用于
GetManifestResourceStream(String)
为 COM 对象提供对 GetManifestResourceStream(String) 方法的与版本无关的访问。Provides COM objects with version-independent access to the GetManifestResourceStream(String) method.
public:
System::IO::Stream ^ GetManifestResourceStream(System::String ^ name);
public System.IO.Stream GetManifestResourceStream (string name);
abstract member GetManifestResourceStream : string -> System.IO.Stream
Public Function GetManifestResourceStream (name As String) As Stream
参数
- name
- String
所请求的清单资源的名称(区分大小写)。The case-sensitive name of the manifest resource being requested.
返回
表示此清单资源的 Stream。A Stream representing this manifest resource.
注解
此方法用于从非托管代码访问托管类,不应从托管代码调用。This method is for access to managed classes from unmanaged code, and should not be called from managed code.
GetManifestResourceStream方法从此程序集加载指定的清单资源。The GetManifestResourceStream method loads the specified manifest resource from this assembly.