共用方式為


TSqlModel 建構函式 (String)

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 _
)
'用途
Dim fileName As String 

Dim instance As New TSqlModel(fileName)
public TSqlModel(
    string fileName
)
public:
TSqlModel(
    String^ fileName
)
new : 
        fileName:string -> TSqlModel
public function TSqlModel(
    fileName : String
)

參數

例外狀況

例外狀況 條件
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.

備註

By default DacSchemaModelStorageType.Memory is used for the model storage format.

請參閱

參考

TSqlModel 類別

TSqlModel 多載

Microsoft.SqlServer.Dac.Model 命名空間