DataSupport Constructor (String, Assembly)

Initializes a new instance of the DataSupport class with an XML resource stored in a managed assembly.

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

Syntax

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

Dim instance As New DataSupport(resourceName, _
    assembly)
protected DataSupport(
    string resourceName,
    Assembly assembly
)
protected:
DataSupport(
    String^ resourceName, 
    Assembly^ assembly
)
protected function DataSupport(
    resourceName : String, 
    assembly : Assembly
)

Parameters

  • resourceName
    Type: System.String

    The name of the managed resource.

Exceptions

Exception Condition
ArgumentNullException

The resourceName and/or assembly parameters are a null reference (Nothing in Visual Basic).

Permissions

See Also

Reference

DataSupport Class

DataSupport Members

DataSupport Overload

Microsoft.VisualStudio.Data.Framework Namespace

DataSupport