As you can see, an Assembly object exposes the GetManifestResourceStream method, which allows you to pass a string name that identifies the embedded resource.
正如您看到的那样,Assembly对象公开GetManifestResourceStream方法,允许您传递标识嵌入资源的字符串名称。
Defines a managed embedded resource to be stored in this module.
定义要存储在此模块中的托管嵌入资源。
Defines the named managed embedded resource to be stored in this module.
定义要存储在此模块中的已命名托管嵌入资源。
Describes how to extract an icon that is an embedded resource of a file.
描述如何提取作为文件嵌入资源的图标。
Returns a URL reference to an embedded resource in an assembly that is used at design time.
返回对嵌入式资源(位于在设计时使用的程序集中)的URL引用。
Defines the named managed embedded resource with the given attributes that is to be stored in this module.
用给定的特性定义存储在此模块中的已命名托管嵌入资源。
If you try to edit an embedded resource, you will receive a message prompting you to convert the item to a linked resource in order to edit it.
如果您尝试要编辑内嵌资源,将会收到一个讯息,提示您要将项目转换为连结资源才能进行编辑。
The following code example demonstrates how to extract an icon from an embedded resource and convert it to a bitmap for display in every cell of an image column.
下面的代码示例演示如何从嵌入式资源提取图标并将其转换为位图以便在图像列的每个单元格中显示。
If those are correct, verify that you set the file's Build Action property to Embedded Resource.
如果这些都很正确,请确认映射文件的编译类型是嵌入式资源。
If those are correct, verify that you set the file's Build Action property to Embedded Resource.
如果这些都很正确,请确认映射文件的编译类型是嵌入式资源。
应用推荐