Creates a ResourceManager for resources whose names begin with the specified root name in the directory of the specified type's module.
[Visual Basic] Overloads Public Sub New( _ ByVal baseName As String, _ ByVal locationInfo As Type, _ ByVal usingResourceSet As Type _ ) [C#] public ResourceManager( string baseName, Type locationInfo, Type usingResourceSet ); [C++] public: ResourceManager( String* baseName, Type* locationInfo, Type* usingResourceSet ); [JScript] public function ResourceManager( baseName : String, locationInfo : Type, usingResourceSet : Type );
Exception Type | Condition |
---|---|
ArgumentException | if usingResourceSet is not a subclass of ResourceSet. |
ArgumentNullException | if baseName is a null reference (Nothing) or locationInfo is a null reference (Nothing). |
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.
ResourceManager Class | ResourceManager Members | System.Resources Namespace | ResourceManager Constructor Overload List