Instantiates a new instance of the DataObjectSupport class with an XML resource that is stored as a file at a specific file path on disk.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Public Sub New ( _
fileName As String, _
path As String _
)
'使用
Dim fileName As String
Dim path As String
Dim instance As New DataObjectSupport(fileName, _
path)
public DataObjectSupport(
string fileName,
string path
)
public:
DataObjectSupport(
String^ fileName,
String^ path
)
public function DataObjectSupport(
fileName : String,
path : String
)
Parameters
fileName
Type: System.StringThe unqualified name of the file.
path
Type: System.StringThe path to the file.
Remarks
Use this constructor when the XML is stored as a file on disk in a specific directory. The fileName parameter specifies the base name of the XML file (that is, the name without any culture information), without the .xml file extension.
This constructor calls its base constructor: DataSupport.
Permissions
- 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.