VCConfiguration.Rules 属性

定义

获取 IVCRulePropertyStorage 对象的集合,这些对象可以修改为在此属性表中定义的项目级属性和默认项元数据。

public:
 property Microsoft::VisualStudio::VCProjectEngine::IVCCollection ^ Rules { Microsoft::VisualStudio::VCProjectEngine::IVCCollection ^ get(); };
[System.Runtime.InteropServices.DispId(781)]
public Microsoft.VisualStudio.VCProjectEngine.IVCCollection Rules { [System.Runtime.InteropServices.DispId(781)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(781)>]
[<get: System.Runtime.InteropServices.DispId(781)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.Rules : Microsoft.VisualStudio.VCProjectEngine.IVCCollection
Public ReadOnly Property Rules As IVCCollection

属性值

IVCCollection

键控集合,其中的键是在规则文件的开始标记中找到的规则的名称。

属性

注解

IVCRulePropertyStorage此属性获取的对象是从其获得对象的属性表中的项目级属性和默认项元数据。 若要修改项目文件中的这些数据,请参阅 <xref:Microsoft.VisualStudio.VCProjectEngine.VCConfiguration.Rules.%2A> 以修改特定项的元数据,请参阅 <xref:Microsoft.VisualStudio.VCProjectEngine.VCFileConfiguration.Tool.%2A>

适用于