DataObjectSupport Constructor (String, Assembly)

Class constructor. Instantiates a parameterized instance of the DataObjectSupport class that provides means for locating a resource stream.

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

Syntax

'宣言
Public Sub New ( _
    baseName As String, _
    assembly As Assembly _
)
'使用
Dim baseName As String
Dim assembly As Assembly

Dim instance As New DataObjectSupport(baseName, _
    assembly)
public DataObjectSupport(
    string baseName,
    Assembly assembly
)
public:
DataObjectSupport(
    String^ baseName, 
    Assembly^ assembly
)
public function DataObjectSupport(
    baseName : String, 
    assembly : Assembly
)

Parameters

  • baseName
    Type: System.String

    The base name of the resource in the assembly.

Exceptions

Exception Condition
ArgumentNullException

The baseName and/or assembly parameters are null.

Remarks

Use this constructor when the XML is stored as a resource stream in an assembly. The baseName parameter specifies the base name of the resource (that is, without any culture information).

Permissions

See Also

Reference

DataObjectSupport Class

DataObjectSupport Members

DataObjectSupport Overload

Microsoft.VisualStudio.Data Namespace