Assembly.GetManifestResourceNames Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
Returns
An array that contains the names of all the resources.
Implements
Remarks
You can use each resource name in the array returned by this method as follows:
You can pass the resource name to the GetManifestResourceInfo method to get additional information about the resource.
If the name identifies a binary .resources file, you can remove its .resources file extension and pass it to the ResourceManager.ResourceManager(String, Assembly) constructor to instantiate the resource manager.
You can pass the resource name to the GetManifestResourceStream method to retrieve a Stream object that you can then pass to the ResourceReader.ResourceReader(Stream) constructor.
You can pass the resource name to the GetManifestResourceStream method to retrieve a Stream object that you can then pass to the ResourceSet.ResourceSet(Stream) constructor.
Resource information is returned only if the resource is visible to the caller, or the caller has ReflectionPermission.