다음을 통해 공유


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

네임스페이스:  Microsoft.SqlServer.Dac.Deployment
어셈블리:  Microsoft.SqlServer.Dac.Extensions(Microsoft.SqlServer.Dac.Extensions.dll)

구문

‘선언
Public ReadOnly Property Arguments As IDictionary(Of String, String)
    Get
‘사용 방법
Dim instance As BuildContributorContext 
Dim value As IDictionary(Of String, String)

value = instance.Arguments
public IDictionary<string, string> Arguments { get; }
public:
property IDictionary<String^, String^>^ Arguments {
    IDictionary<String^, String^>^ get ();
}
member Arguments : IDictionary<string, string>
function get Arguments () : IDictionary<String, String>

속성 값

유형: System.Collections.Generic.IDictionary<String, String>

참고 항목

참조

BuildContributorContext 클래스

Microsoft.SqlServer.Dac.Deployment 네임스페이스