Compartilhar via


VCPropertySheet.Rules Property

Gets a collection of IVCRulePropertyStorage objects that can modify to project-level properties and default item metadata defined in this property sheet.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
ReadOnly Property Rules As IVCCollection
IVCCollection Rules { get; }
property IVCCollection^ Rules {
    IVCCollection^ get ();
}
abstract Rules : IVCCollection with get
function get Rules () : IVCCollection

Property Value

Type: Microsoft.VisualStudio.VCProjectEngine.IVCCollection
A keyed collection, where the key is the name of the rule as found inside the rule file’s opening tag.

Remarks

The IVCRulePropertyStorage objects obtained by this property are project-level properties and default item metadata in the property sheet from which the objects were obtained. To modify these data in the project file, see [P:Microsoft.VisualStudio.VCProjectEngine.VCConfiguration.Rules.] To modify the metadata of a particular item, see [P:Microsoft.VisualStudio.VCProjectEngine.VCFileConfiguration.Tool.]

.NET Framework Security

See Also

Reference

VCPropertySheet Interface

Microsoft.VisualStudio.VCProjectEngine Namespace