Export (0) Print
Expand All
Expand Minimize

CodeType Element (Visual Studio Project Policy) 

Visual Studio 2005

A CodeType element represents a class-like code model element such as a class, namespace, interface, or struct. The id that corresponds to the particular CodeType element in question will be defined in the definitions file.


<CodeType Id="value">
   <Constraints>...</Constraints>
   <ElementSet>   </ElementSet>
</CodeType>

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

Id

The PDL id, defined in the definitions file, of the CodeType element whose policy is described by this CodeType element. There must be a corresponding CodeType element in the elementdefs section of the definitions file. Required.

Child Elements

Element Description

Constraints

Zero or one collections of constraint elements that directly describes IDE and property constraints to be enforced on this particular CodeType element (but not any contained elements).

ElementSet

Zero or one collection of rules that describe which elements this element is permitted to contain. Also contains a collection of constraints that apply to all elements the current element contains.

Parent Elements

Element Description

Elements

Contains the elements described in this policy actions file.

Namespace

http://schemas.microsoft.com/VSPolicy/PDLSchema

Schema Name

Visual Studio Project Policy

Validation File

Policy.xsd

Can be Empty

Not applicable

Community Additions

ADD
Show:
© 2014 Microsoft