System.Resources.ResourceManager.BaseName Property

Gets the root name of the resource files that the System.Resources.ResourceManager searches for resources.

Syntax

public virtual string BaseName { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The ResourceManager.BaseName property reflects the fully qualified namespace name and the root resource name of a resource file, without its culture or file name extension. For example, if an app's default resource file is named SampleApps.StringResources.resources, the value of the ResourceManager.BaseName property is "SampleApps.StringResources". If an app's default resource file is named SampleApps.StringResources.en-US.resources and is embedded in a satellite assembly, the value of the ResourceManager.BaseName property is still "SampleApps.StringResources".

Note:

The ResourceManager.BaseName property value of a resource file that is compiled and embedded from the command line does not include a namespace name unless you explicitly include one when compiling the file. On the other hand, the ResourceManager.BaseName property value of a resource file that is compiled and embedded within the Visual Studio environment typically does include the default namespace name.

The ResourceManager.BaseName property value is the same as the string passed to the ResourceManager.#ctor(string, System.Reflection.Assembly) or ResourceManager.#ctor(string, System.Reflection.Assembly, Type) constructor when instantiating a System.Resources.ResourceManager instance.

Requirements

Namespace: System.Resources
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0