Initializes a new instance of the TSqlModel class.
命名空間: Microsoft.SqlServer.Dac.Model
組件: Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)
語法
'宣告
Public Sub New ( _
fileName As String, _
modelStorageType As DacSchemaModelStorageType _
)
'用途
Dim fileName As String
Dim modelStorageType As DacSchemaModelStorageType
Dim instance As New TSqlModel(fileName, _
modelStorageType)
public TSqlModel(
string fileName,
DacSchemaModelStorageType modelStorageType
)
public:
TSqlModel(
String^ fileName,
DacSchemaModelStorageType modelStorageType
)
new :
fileName:string *
modelStorageType:DacSchemaModelStorageType -> TSqlModel
public function TSqlModel(
fileName : String,
modelStorageType : DacSchemaModelStorageType
)
參數
- fileName
型別:System.String
File path to package.
- modelStorageType
型別:Microsoft.SqlServer.Dac.DacSchemaModelStorageType
Backing storage type for package instance.
例外狀況
| 例外狀況 | 條件 |
|---|---|
| DacModelException | If there are problems loading the package from the specified fileName. This may occur if the package does not load correctly or if references required by the package are not found in either the same directory as the package, or using the original path to the reference. |