BuildContributorContext.Arguments 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取命令行参数及其值的字典。 在 SSDT 中生成时,在 .sqlproj 文件或引用的 .targets 文件中找到参数时可用。 例如,若要添加值为“true”的“RunMyContributor”参数,将添加以下内容:
<PropertyGroup><ContributorArguments Condition=“'$(Configuration)' == 'Debug''”> $(ContributorArguments);RunMyContributor=True; </ContributorArguments></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)