Assembly.GetManifestResourceInfo(String) 方法

定义

返回关于给定资源如何保持的信息。Returns information about how the given resource has been persisted.

public:
 virtual System::Reflection::ManifestResourceInfo ^ GetManifestResourceInfo(System::String ^ resourceName);
public virtual System.Reflection.ManifestResourceInfo GetManifestResourceInfo (string resourceName);
public virtual System.Reflection.ManifestResourceInfo? GetManifestResourceInfo (string resourceName);
abstract member GetManifestResourceInfo : string -> System.Reflection.ManifestResourceInfo
override this.GetManifestResourceInfo : string -> System.Reflection.ManifestResourceInfo
Public Overridable Function GetManifestResourceInfo (resourceName As String) As ManifestResourceInfo

参数

resourceName
String

区分大小写的资源名称。The case-sensitive name of the resource.

返回

ManifestResourceInfo

用关于资源拓扑的信息填充的对象;如果未找到资源,则为 nullAn object that is populated with information about the resource's topology, or null if the resource is not found.

实现

例外

resourceNamenullresourceName is null.

resourceName 参数为空字符串 ("")。The resourceName parameter is an empty string ("").

注解

仅当资源对调用方可见或调用方具有时,才返回资源信息 ReflectionPermissionResource information is returned only if the resource is visible to the caller, or the caller has ReflectionPermission.

适用于

另请参阅