Freigeben über


ContributorArgumentConfiguration-Klasse

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.

Vererbungshierarchie

System.Object
  Microsoft.SqlServer.Dac.Deployment.ContributorArgumentConfiguration

Namespace:  Microsoft.SqlServer.Dac.Deployment
Assembly:  Microsoft.SqlServer.Dac.Extensions (in Microsoft.SqlServer.Dac.Extensions.dll)

Syntax

'Declaration
Public NotInheritable Class ContributorArgumentConfiguration
'Usage
Dim instance As ContributorArgumentConfiguration
public sealed class ContributorArgumentConfiguration
public ref class ContributorArgumentConfiguration sealed
[<SealedAttribute>]
type ContributorArgumentConfiguration =  class end
public final class ContributorArgumentConfiguration

Der ContributorArgumentConfiguration-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode ContributorArgumentConfiguration() Initializes a new instance of the ContributorArgumentConfiguration class.
Öffentliche Methode ContributorArgumentConfiguration(String, String) Initializes a new instance of the ContributorArgumentConfiguration class.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Name Gets or sets the name of the argument.
Öffentliche Eigenschaft Value Gets or sets the value of the argument expressed as a string.

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetType (Geerbt von Object.)
Öffentliche Methode ToString (Geerbt von Object.)

Zum Anfang

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Dac.Deployment-Namespace