Instances of this class are created by Build and Deployment contributors during design-time to initialize arguments that are passed to them at runtime. In SSDT, these arguments must be specified using a ContributorArguments property 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. It is also possible to specify these when creating a package by using BuildPackage(String, TSqlModel, PackageMetadata, PackageOptions) and specifying PackageOptions.
继承层次结构
System.Object
Microsoft.SqlServer.Dac.Deployment.ContributorArgumentConfiguration
命名空间: Microsoft.SqlServer.Dac.Deployment
程序集: Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)
语法
声明
Public NotInheritable Class ContributorArgumentConfiguration
用法
Dim instance As ContributorArgumentConfiguration
public sealed class ContributorArgumentConfiguration
public ref class ContributorArgumentConfiguration sealed
[<SealedAttribute>]
type ContributorArgumentConfiguration = class end
public final class ContributorArgumentConfiguration
ContributorArgumentConfiguration 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
ContributorArgumentConfiguration() | Initializes a new instance of the ContributorArgumentConfiguration class. |
![]() |
ContributorArgumentConfiguration(String, String) | Initializes a new instance of the ContributorArgumentConfiguration class. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Name | Gets or sets the name of the argument. |
![]() |
Value | Gets or sets the value of the argument expressed as a string. |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | (从 Object 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
ToString | (从 Object 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。