DataSupport.CreateXmlResourceManager Method (String, Assembly)
Creates a ResourceManager object instance that is able to read managed resources that end with the .xml file extension.
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)
Syntax
'Declaration
Protected Shared Function CreateXmlResourceManager ( _
resourceName As String, _
assembly As Assembly _
) As ResourceManager
protected static ResourceManager CreateXmlResourceManager(
string resourceName,
Assembly assembly
)
protected:
static ResourceManager^ CreateXmlResourceManager(
String^ resourceName,
Assembly^ assembly
)
static member CreateXmlResourceManager :
resourceName:string *
assembly:Assembly -> ResourceManager
protected static function CreateXmlResourceManager(
resourceName : String,
assembly : Assembly
) : ResourceManager
Parameters
- resourceName
Type: System.String
The name of the managed resource without the .xml file extension.
- assembly
Type: System.Reflection.Assembly
The assembly that contains the resource.
Return Value
Type: System.Resources.ResourceManager
Returns a ResourceManager object able to read managed resources that end with the extension ".xml".
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The resourceName and/or assembly parameters are null. |
Remarks
The standard .NET resource manager is only able to read resources that end with the extension ".resources". Calling this method provides a resource manager that is overridden to work with the ".xml" extension.
This resource manager will work correctly if the XML resource is localized; that is, if the standard .NET resource lookup mechanism is used to find a localized resource in a satellite assembly.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.