次の方法で共有


TSqlModel コンストラクター (String, DacSchemaModelStorageType)

DacPackage または BacPackage からモデルを作成します。

名前空間:  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
    パッケージのファイル パス。

例外

例外 条件
DacModelException

指定した fileName からパッケージを読み込む際に問題が発生した場合。 この例外は、パッケージが正しく読み込まれない場合、または、パッケージに必要な参照が、パッケージと同じディレクトリで見つからない場合や参照への元のパスを使用して見つからない場合に発生することがあります。

関連項目

参照

TSqlModel クラス

TSqlModel オーバーロード

Microsoft.SqlServer.Dac.Model 名前空間