Freigeben über


DataSupport.CreateXmlResourceManager Method (String, String)

Creates a ResourceManager object instance that is able to read XML files from a file at a specific location on disk.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'Declaration
Protected Shared Function CreateXmlResourceManager ( _
    fileName As String, _
    path As String _
) As ResourceManager
protected static ResourceManager CreateXmlResourceManager(
    string fileName,
    string path
)
protected:
static ResourceManager^ CreateXmlResourceManager(
    String^ fileName, 
    String^ path
)
static member CreateXmlResourceManager : 
        fileName:string * 
        path:string -> ResourceManager 
protected static function CreateXmlResourceManager(
    fileName : String, 
    path : String
) : ResourceManager

Parameters

  • fileName
    Type: System.String
    The unqualified name of the resource file.

Return Value

Type: System.Resources.ResourceManager
A ResourceManager object able to read XML files from a specific location on disk.

Exceptions

Exception Condition
ArgumentNullException

The fileName and/or path parameters are null.

Remarks

This resource manager looks up localized XML files by appending the name of the culture to the file name between the name and the extension, and looking in the same directory.

For example, if the arguments to this constructor are "MyFile.xml" and "C:\MyFiles", then requesting XML for the culture zh-CHS causes the resource manager to look for the file "C:\MyFiles\MyFile.zh-CHS.cml".

.NET Framework Security

See Also

Reference

DataSupport Class

CreateXmlResourceManager Overload

Microsoft.VisualStudio.Data Namespace