Assembly.GetManifestResourceNames Assembly.GetManifestResourceNames Assembly.GetManifestResourceNames Assembly.GetManifestResourceNames Method

定义

返回此程序集中的所有资源的名称。Returns the names of all the resources in this assembly.

public:
 virtual cli::array <System::String ^> ^ GetManifestResourceNames();
public virtual string[] GetManifestResourceNames ();
abstract member GetManifestResourceNames : unit -> string[]
override this.GetManifestResourceNames : unit -> string[]
Public Overridable Function GetManifestResourceNames () As String()

返回

String[]

包含所有资源名称的数组。An array that contains the names of all the resources.

实现

注解

您可以使用此方法返回的数组中的每个资源名称, 如下所示:You can use each resource name in the array returned by this method as follows:

仅当资源对调用方可见或调用方具有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

适用于

另请参阅