次の方法で共有


DeploymentContributorConfigurationStream クラス

配置プロセスおよびビルド プロセスにおいて DacFx で使用される構成ファイルのストリーム可能なバージョンを表します。 これらのストリームにより、配置の拡張機能では、デザインと配置の操作性を向上および拡張できます。 入力構成ファイルは、MSBuild プロセスの一環として、.sqlproj ファイルで定義できます。 このファイルはストリームとして扱われ、EstablishDeploymentConfiguration(DeploymentContributorConfigurationSetup) メソッドを介してコントリビューターに渡されます。この場合、ファイルは、生成された dacpac に格納される出力としてコピーされます。 その後、これらのストリームは ApplyDeploymentConfiguration(DeploymentContributorContext, ICollectionDeploymentContributorConfigurationStream) で使用できるようになり、配置中に構成およびデータに使用できます。 ApplyDeploymentConfiguration(DeploymentContributorContext, ICollectionDeploymentContributorConfigurationStream) メソッドの最後で、すべてのストリームが破棄されます。 ストリームからデータを取得する必要のあるコントリビューターは、このメソッドの実行中にデータを読み取り、キャッシュする必要があります。OnExecute(DeploymentPlanContributorContext) メソッド実行中にストリームから読み取ろうとすると失敗します。 .sqproj ファイル内では、配置構成ファイルが次のように指定されています。

<ItemGroup> <DeploymentExtensionConfiguration Include="MyContributorName.MyFileName1.sql" /> <DeploymentExtensionConfiguration Include="MyContributorName.MyFileName2.sql" /> </ItemGroup>

構成ストリームからはすべてのコントリビューターにアクセスできることに注意してください。 コントリビューターでは、そのコントリビューターに関連する入力ファイルを識別するためにファイルの名前付けパターンを使用する場合があります。

継承階層

System.Object
  Microsoft.SqlServer.Dac.Deployment.DeploymentContributorConfigurationStream

名前空間:  Microsoft.SqlServer.Dac.Deployment
アセンブリ:  Microsoft.SqlServer.Dac.Extensions (Microsoft.SqlServer.Dac.Extensions.dll)

構文

'宣言
Public NotInheritable Class DeploymentContributorConfigurationStream
'使用
Dim instance As DeploymentContributorConfigurationStream
public sealed class DeploymentContributorConfigurationStream
public ref class DeploymentContributorConfigurationStream sealed
[<SealedAttribute>]
type DeploymentContributorConfigurationStream =  class end
public final class DeploymentContributorConfigurationStream

DeploymentContributorConfigurationStream 型は、以下のメンバーを公開しています。

コンストラクター

  名前 説明
パブリック メソッド DeploymentContributorConfigurationStream DeploymentContributorConfigurationStream クラスのインスタンスを作成します。

先頭に戻る

プロパティ

  名前 説明
パブリック プロパティ Filename このストリームを表すために使用するファイル名。

先頭に戻る

メソッド

  名前 説明
パブリック メソッド Equals (Object から継承されています。)
パブリック メソッド GetHashCode (Object から継承されています。)
パブリック メソッド GetStream Stream を取得します。
パブリック メソッド GetType (Object から継承されています。)
パブリック メソッド ToString (Object から継承されています。)

先頭に戻る

スレッド セーフ

この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

関連項目

参照

Microsoft.SqlServer.Dac.Deployment 名前空間