Compartir a través de


CodeAttribute Interface

Allows manipulation of a code element's attribute.

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

Syntax

'Declaration
<GuidAttribute("0CFBC2BE-0D4E-11D3-8997-00C04F688DDE")> _
Public Interface CodeAttribute
[GuidAttribute("0CFBC2BE-0D4E-11D3-8997-00C04F688DDE")]
public interface CodeAttribute
[GuidAttribute(L"0CFBC2BE-0D4E-11D3-8997-00C04F688DDE")]
public interface class CodeAttribute
[<GuidAttribute("0CFBC2BE-0D4E-11D3-8997-00C04F688DDE")>]
type CodeAttribute =  interface end
public interface CodeAttribute

The CodeAttribute type exposes the following members.

Properties

  Name Description
Public property Children Returns a collection of objects contained within this code's CodeAttribute construct.
Public property Collection Gets the collection containing the CodeAttribute object supporting this property.
Public property DTE Gets the top-level extensibility object.
Public property EndPoint Gets the text point that is the location of the end of the code item.
Public property Extender Returns the requested Extender object.
Public property ExtenderCATID Gets the Extender category ID (CATID) for the object.
Public property ExtenderNames Gets a list of available Extenders for the object.
Public property FullName Gets the full path and name of the CodeAttribute object's file.
Public property InfoLocation Describes the capabilities of the code model.
Public property IsCodeType Indicates whether or not a CodeType object can be obtained from this CodeAttribute object.
Public property Kind Gets an enumeration indicating the type of object.
Public property Language Gets the programming language used to author the code.
Public property Name Sets or gets the name of the CodeAttribute.
Public property Parent Gets the immediate parent object of a given CodeAttribute object.
Public property ProjectItem Gets the ProjectItem associated with the CodeAttribute object.
Public property StartPoint Gets a TextPoint object that defines the beginning of the code item.
Public property Value Sets or gets the data value for the object.

Top

Methods

  Name Description
Public method Delete Removes the current CodeAttribute.
Public method GetEndPoint Returns a TextPoint object that marks the end of the code element definition.
Public method GetStartPoint Returns a TextPoint that specifies the beginning of the code element definition.

Top

Remarks

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.

Note

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

See Also

Reference

EnvDTE Namespace