CodeProperty2 Interface

 

An object defining a property construct in a source file.

Namespace:   EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

[GuidAttribute("33770C02-21B7-4224-A577-6877BDBA60EA")]
public interface CodeProperty2 : CodeProperty

NameDescription
System_CAPS_pubpropertyAccess

Gets or sets the access attributes of this item.

System_CAPS_pubpropertyAttributes

Gets a collection of all attributes for the parent object.

System_CAPS_pubpropertyChildren

Gets a collection of objects contained within this CodeProperty2 object.

System_CAPS_pubpropertyCollection

Gets the collection containing the CodeProperty object supporting this property.

System_CAPS_pubpropertyComment

Gets or sets the comment associated with the code element.

System_CAPS_pubpropertyDocComment

Gets or sets the document comment for the current code model element.

System_CAPS_pubpropertyDTE

Gets the top-level extensibility object.

System_CAPS_pubpropertyEndPoint

Gets the edit point that is the location of the end of the code item.

System_CAPS_pubpropertyExtender[String]

Gets the requested Extender if it is available for this object.

System_CAPS_pubpropertyExtenderCATID

Gets the Extender category ID (CATID) for the object.

System_CAPS_pubpropertyExtenderNames

Gets a list of available Extenders for the object.

System_CAPS_pubpropertyFullName

Gets the full path and name of the object's file.

System_CAPS_pubpropertyGetter

Gets or sets an object defining the code to return a property.

System_CAPS_pubpropertyInfoLocation

Gets the capabilities of the code model.

System_CAPS_pubpropertyIsCodeType

Gets a value indicating whether a CodeType object can be obtained from this object.

System_CAPS_pubpropertyIsDefault

Sets or gets whether this is the default property.

System_CAPS_pubpropertyIsGeneric

Gets a value indicating whether or not the property is a generic.

System_CAPS_pubpropertyIsShared

Gets or sets the shared status of the property.

System_CAPS_pubpropertyKind

Gets an enumeration indicating the type of object.

System_CAPS_pubpropertyLanguage

Gets the programming language used to author the code.

System_CAPS_pubpropertyName

Gets or sets the name of the object.

System_CAPS_pubpropertyOverrideKind

Gets or sets the override modifiers on a Property.

System_CAPS_pubpropertyParameters

Gets CodeParameter2 objects for any parameters to the property.

System_CAPS_pubpropertyParent

Gets the immediate parent object of a CodeProperty object.

System_CAPS_pubpropertyParent2

Gets the parent of the element.

System_CAPS_pubpropertyProjectItem

Gets the ProjectItem associated with the given object.

System_CAPS_pubpropertyPrototype[Int32]

Returns a string holding the stub definition of this object.

System_CAPS_pubpropertyReadWrite

Returns whether the property is readable, writeable, or both.

System_CAPS_pubpropertySetter

Gets or sets an object defining the code to set a property.

System_CAPS_pubpropertyStartPoint

Gets a TextPoint object that defines the beginning of the code item.

System_CAPS_pubpropertyType

Gets or sets an object representing the programmatic type.

NameDescription
System_CAPS_pubmethodAddAttribute(String, String, Object)

Creates a new attribute code construct and inserts the code in the correct location.

System_CAPS_pubmethodAddParameter(String, Object, Object)

Adds a parameter to a property definition.

System_CAPS_pubmethodGetEndPoint(vsCMPart)

Gets a TextPoint object that marks the end of the code element definition.

System_CAPS_pubmethodGetStartPoint(vsCMPart)

Gets a TextPoint object that defines the beginning of the code element definition.

System_CAPS_pubmethodRemoveParameter(Object)

Removes a parameter from the property's signature.

The CodeProperty2 object represents a property and determines how properties are defined in the various languages. For example, Visual Basic has two separate functions, one that gets a value and another that puts it. Together they form a property. In Visual C#, however, one declaration form declares a property and whether it has a getter and a setter.

System_CAPS_noteNote

The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same.

Return to top
Show: