BuildContributorContext.Arguments 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得命令列參數及其值的字典。 在 SSDT 建置時,參數可在 .sqlproj 檔案或參考的 .targets 檔案中找到。 例如,若要加入一個值為「true」的「RunMyContributor」參數,會加入以下內容:
<PropertyGroup><ContributorArguments 條件=“'$(Configuration)' == 'Debug''”> $(ContributorArguments);RunMyContributor=True; </貢獻者論點></PropertyGroup>
此時參數僅用於除錯設定。 利用上述配置,可以從 MSBuild 環境中收集資訊並傳遞給貢獻者。
public System.Collections.Generic.IDictionary<string,string> Arguments { get; }
member this.Arguments : System.Collections.Generic.IDictionary<string, string>
Public ReadOnly Property Arguments As IDictionary(Of String, String)