Класс ContributorArgumentConfiguration

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.)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Dac.Deployment