Assembly.GetManifestResourceInfo(String) Assembly.GetManifestResourceInfo(String) Assembly.GetManifestResourceInfo(String) Assembly.GetManifestResourceInfo(String) Method

定义

返回关于给定资源如何保持的信息。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);
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 String String String

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

返回

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

实现

异常

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.

安全性

ReflectionPermission
当调用后期绑定机制通过如InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[])when invoked late-bound through mechanisms such as InvokeMember(String, BindingFlags, Binder, Object, Object[], ParameterModifier[], CultureInfo, String[]). 关联的枚举: MemberAccessAssociated enumeration: MemberAccess

适用于

另请参阅