Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CodeDelegate Interface
Collapse the table of content
Expand the table of content

CodeDelegate Interface

Object representing a delegate in source code.

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

[GuidAttribute("B1F42513-91CD-4D3A-8B25-A317D8032B24")]
public interface CodeDelegate

The CodeDelegate type exposes the following members.

  NameDescription
Public propertyAccessSets or gets the access attributes of this delegate.
Public propertyAttributesGets a collection of all of the attributes for the delegate.
Public propertyBaseClassGets the class from which this CodeDelegate object is derived.
Public propertyBasesGets a collection of classes from which this delegate is derived.
Public propertyChildrenGets a collection of objects contained within this CodeDelegate.
Public propertyCollectionReturns the collection containing the CodeDelegate object supporting this property.
Public propertyCommentGets or sets the comment associated with the CodeDelegate.
Public propertyDerivedTypesGets a collection of objects derived from the CodeDelegate object. Not implemented in Visual C#.
Public propertyDocCommentSets or gets the documentation comments for CodeDelegate element.
Public propertyDTEGets the top-level extensibility object.
Public propertyEndPointGets the text point that is the location of the end of the delegate.
Public propertyExtenderReturns the requested Extender object for the delegate. Not implemented in Visual C#.
Public propertyExtenderCATIDGets the Extender category ID (CATID) for the CodeDelegate object. Not implemented in Visual C#.
Public propertyExtenderNamesGets a list of available Extenders for the delegate. Not implemented in Visual C#.
Public propertyFullNameGets the full path and name of the delegate's file.
Public propertyInfoLocationGets the capabilities of the code model for the delegate.
Public propertyIsCodeTypeIndicates whether or not a CodeType object can be obtained from this delegate.
Public propertyIsDerivedFromIndicates whether or not a CodeDelegate object has another object as a base.
Public propertyKindGets an enumeration that defines the type of object.
Public propertyLanguageGets the programming language used to author the code.
Public propertyMembersGets the collection of items this CodeDelegate element contains.
Public propertyNameSets or gets the name of the CodeDelegate object.
Public propertyNamespaceGets an object defining the parent namespace of the delegate.
Public propertyParametersGets a collection of parameters for this CodeDelegate.
Public propertyParentGets the immediate parent object of a CodeDelegate object.
Public propertyProjectItemGets the ProjectItem object associated with the CodeDelegate object.
Public propertyPrototypeReturns a string holding the stub definition of this delegate.
Public propertyStartPointGets a TextPoint object that defines the beginning of the delegate.
Public propertyTypeSets or gets an object representing the programmatic type of the delegate.
Top

  NameDescription
Public methodAddAttributeCreates a new attribute code construct and inserts the code in the correct location.
Public methodAddBaseAdds an item to the list of inherited objects.
Public methodAddParameterCreates a new parameter for the delegate and inserts the code in the correct location.
Public methodGetEndPointReturns a TextPoint object that marks the end of the delegate definition.
Public methodGetStartPointReturns a TextPoint object that defines the beginning of the delegate definition.
Public methodRemoveBaseRemoves an object from the list of bases.
Public methodRemoveMemberRemoves a member from the delegate.
Public methodRemoveParameterRemoves a parameter from the delegate's argument list.
Top

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