共用方式為


BuildContributorContext 類別

Provides the context for the build process that is used by BuildContributor objects during project build. See documentation for the Arguments and ExtensionFiles properties for information on how to specify these inside a project file.

繼承階層

System.Object
  Microsoft.SqlServer.Dac.Deployment.BuildContributorContext

命名空間:  Microsoft.SqlServer.Dac.Deployment
組件:  Microsoft.SqlServer.Dac.Extensions (在 Microsoft.SqlServer.Dac.Extensions.dll 中)

語法

'宣告
Public NotInheritable Class BuildContributorContext
'用途
Dim instance As BuildContributorContext
public sealed class BuildContributorContext
public ref class BuildContributorContext sealed
[<SealedAttribute>]
type BuildContributorContext =  class end
public final class BuildContributorContext

BuildContributorContext 型別公開下列成員。

建構函式

  名稱 說明
公用方法 BuildContributorContext Initializes a new instance of the BuildContributorContext class.

上層

屬性

  名稱 說明
公用屬性 Arguments Gets a dictionary of command-line arguments and their values. When building in SSDT, arguments are available when found in a .sqlproj file or a referenced .targets file. For instance to add a "RunMyContributor" argument with a value of "true", the following would be added: <PropertyGroup> <ContributorArguments Condition="'$(Configuration)' == 'Debug''"> $(ContributorArguments);RunMyContributor=True; </ContributorArguments> </PropertyGroup>In this case the argument is only added for Debug configuration. Using the above configuration it is possible to collect information from the MSBuild environment and pass it to the contributor.
公用屬性 BuildProperties Gets a dictionary of named properties and their values
公用屬性 ExtensionFiles Gets an array of ITaskItem representing Files from the project system which influence the build contributors. Input configuration files can be defined in a .sqlproj file as part of the MSBuild process. Inside a .sqproj file, Build Configuration files are specified as follows: <ItemGroup> <BuildExtensionConfiguration Include="MyContributorName.MyFileName1.sql" /> <BuildExtensionConfiguration Include="MyContributorName.MyFileName2.sql" /> </ItemGroup.>Note that configuration files are accessible to all contributors. Contributors may employ a file naming pattern to identify which input files related to that contributor.
公用屬性 Model Gets the TSqlModel of the project

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
公用方法 ToString (繼承自 Object。)

上層

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

請參閱

參考

Microsoft.SqlServer.Dac.Deployment 命名空間