CodeAttribute Interface

Allows manipulation of a code element's attribute.

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

[GuidAttribute("0CFBC2BE-0D4E-11D3-8997-00C04F688DDE")]
public interface CodeAttribute

The CodeAttribute type exposes the following members.

  NameDescription
Public propertyChildrenReturns a collection of objects contained within this code's CodeAttribute construct.
Public propertyCollectionGets the collection containing the CodeAttribute object supporting this property.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the text point that is the location of the end of the code item.
Public propertyExtenderReturns the requested Extender 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 CodeAttribute object's file.
Public propertyInfoLocationDescribes the capabilities of the code model.
Public propertyIsCodeTypeIndicates whether or not a CodeType object can be obtained from this CodeAttribute object.
Public propertyKindGets an enumeration indicating the type of object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyNameSets or gets the name of the CodeAttribute.
Public propertyParentGets the immediate parent object of a given CodeAttribute object.
Public propertyProjectItemGets the ProjectItem associated with the CodeAttribute object.
Public propertyStartPointGets a TextPoint object that defines the beginning of the code item.
Public propertyValueSets or gets the data value for the object.
Top

  NameDescription
Public methodDeleteRemoves the current CodeAttribute.
Public methodGetEndPointReturns a TextPoint object that marks the end of the code element definition.
Public methodGetStartPointReturns a TextPoint that specifies the beginning of the code element definition.
Top

The CodeAttribute object represents one COM metadata attribute associated with a code element. You can get and set the value of a code attribute with the CodeAttribute object.

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).

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft