Partager via


DataObjectSupport Constructor (String, String)

Class constructor. Instantiates a parameterized instance of the DataObjectSupport class that provides resource directory information.

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

Syntax

'Declaration
Public Sub New ( _
    baseName As String, _
    directory As String _
)
public DataObjectSupport(
    string baseName,
    string directory
)
public:
DataObjectSupport(
    String^ baseName, 
    String^ directory
)
new : 
        baseName:string * 
        directory:string -> DataObjectSupport
public function DataObjectSupport(
    baseName : String, 
    directory : String
)

Parameters

  • baseName
    Type: System.String

    The base name of the resource in the assembly.

  • directory
    Type: System.String

    The directory that contains the XML file.

Exceptions

Exception Condition
ArgumentNullException

The baseName and/or directory parameters are null.

Remarks

Use this constructor when the XML is stored as a file on disk in a specific directory. The baseName parameter specifies the base name of the XML file (that is, without any culture information), and without the ".xml" file extension.

.NET Framework Security

See Also

Reference

DataObjectSupport Class

DataObjectSupport Overload

Microsoft.VisualStudio.Data Namespace