Export (0) Print
Expand All

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

The CodeProperty2 type exposes the following members.

  NameDescription
Public propertyAccessGets or sets the access attributes of this item.
Public propertyAttributesGets a collection of all attributes for the parent object.
Public propertyChildrenGets a collection of objects contained within this CodeProperty2 object.
Public propertyCollectionGets the collection containing the CodeProperty object supporting this property.
Public propertyCommentGets or sets the comment associated with the code element.
Public propertyDocCommentGets or sets the document comment for the current code model element.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the edit point that is the location of the end of the code item.
Public propertyExtenderGets the requested Extender if it is available for this object.
Public propertyExtenderCATIDGets the Extender category ID (CATID) for the object.
Public propertyExtenderNamesGets a list of available Extenders for the object.
Public propertyFullNameGets the full path and name of the object's file.
Public propertyGetterGets or sets an object defining the code to return a property.
Public propertyInfoLocationGets the capabilities of the code model.
Public propertyIsCodeTypeGets a value indicating whether a CodeType object can be obtained from this object.
Public propertyIsDefaultSets or gets whether this is the default property.
Public propertyIsGenericGets a value indicating whether or not the property is a generic.
Public propertyIsSharedGets or sets the shared status of the property.
Public propertyKindGets an enumeration indicating the type of object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyNameGets or sets the name of the object.
Public propertyOverrideKindGets or sets the override modifiers on a Property.
Public propertyParametersGets CodeParameter2 objects for any parameters to the property.
Public propertyParentGets the immediate parent object of a CodeProperty object.
Public propertyParent2Gets the parent of the element.
Public propertyProjectItemGets the ProjectItem associated with the given object.
Public propertyPrototypeReturns a string holding the stub definition of this object.
Public propertyReadWriteReturns whether the property is readable, writeable, or both.
Public propertySetterGets or sets an object defining the code to set a property.
Public propertyStartPointGets a TextPoint object that defines the beginning of the code item.
Public propertyTypeGets or sets an object representing the programmatic type.
Top

  NameDescription
Public methodAddAttributeCreates a new attribute code construct and inserts the code in the correct location.
Public methodAddParameterAdds a parameter to a property definition.
Public methodGetEndPointGets a TextPoint object that marks the end of the code element definition.
Public methodGetStartPointGets a TextPoint object that defines the beginning of the code element definition.
Public methodRemoveParameterRemoves a parameter from the property's signature.
Top

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.

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. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic).

Community Additions

ADD
Show:
© 2015 Microsoft