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:

仅当资源对调用方,可见或调用方必须返回资源信息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

适用于

另请参阅