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 ("").

注解

仅当资源对调用方可见或调用方具有ReflectionPermission时, 才返回资源信息。Resource 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

适用于

另请参阅