NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ResourceManager Constructor (String, String, Type)

Creates a ResourceManager for the resources whose names begin with the specified root name in the specified directory.

[Visual Basic]
Overloads Public Sub New( _
   ByVal baseName As String, _
   ByVal resourceDir As String, _
   ByVal usingResourceSet As Type _
)
[C#]
public ResourceManager(
   string baseName,
   string resourceDir,
   Type usingResourceSet
);
[C++]
public: ResourceManager(
   String* baseName,
   String* resourceDir,
   Type* usingResourceSet
);
[JScript]
public function ResourceManager(
   baseName : String,
   resourceDir : String,
   usingResourceSet : Type
);

Parameters

baseName
The root name of the resources. For example, the root name for the resource "MyResource.en-us.resources" is "MyResource".
resourceDir
The name of the directory to search for the resources.
usingResourceSet
The Type of the custom ResourceSet to be used. If a null reference (in Visual Basic Nothing), the default runtime ResourceSet will be used.

Exceptions

Exception Type Condition
ArgumentException if baseName ends in ".resources"
ArgumentNullException if baseName is a null reference (Nothing)

Remarks

This Assembly ignorant constructor is mostly useful for testing a ResourceSet implementation.

You can specify a ResourceSet implementation to be used. If you do not need a specific ResourceSet implementation but would like to use a custom resource file format, you should subclass ResourceSet, override GetDefaultReader and GetDefaultWriter, and pass that type to this constructor.

See Also

ResourceManager Class | ResourceManager Members | System.Resources Namespace | ResourceManager Constructor Overload List