Freigeben über


CodeDelegate Interface

Definition

Object representing a delegate in source code.

public interface class CodeDelegate
public interface class CodeDelegate
__interface CodeDelegate
[System.Runtime.InteropServices.Guid("B1F42513-91CD-4D3A-8B25-A317D8032B24")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface CodeDelegate
[<System.Runtime.InteropServices.Guid("B1F42513-91CD-4D3A-8B25-A317D8032B24")>]
[<System.Runtime.InteropServices.TypeLibType(4160)>]
type CodeDelegate = interface
Public Interface CodeDelegate
Derived
Attributes

Remarks

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

Properties

Access

Sets or gets the access attributes of this delegate.

Attributes

Gets a collection of all of the attributes for the delegate.

BaseClass

Gets the class from which this CodeDelegate object is derived.

Bases

Gets a collection of classes from which this delegate is derived.

Children

Gets a collection of objects contained within this CodeDelegate.

Collection

Returns the collection containing the CodeDelegate object supporting this property.

Comment

Gets or sets the comment associated with the CodeDelegate.

DerivedTypes

Gets a collection of objects derived from the CodeDelegate object. Not implemented in Visual C#.

DocComment

Sets or gets the documentation comments for CodeDelegate element.

DTE

Gets the top-level extensibility object.

EndPoint

Gets the text point that is the location of the end of the delegate.

Extender[String]

Returns the requested Extender object for the delegate. Not implemented in Visual C#.

ExtenderCATID

Gets the Extender category ID (CATID) for the CodeDelegate object. Not implemented in Visual C#.

ExtenderNames

Gets a list of available Extenders for the delegate. Not implemented in Visual C#.

FullName

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

InfoLocation

Gets the capabilities of the code model for the delegate.

IsCodeType

Indicates whether or not a CodeType object can be obtained from this delegate.

IsDerivedFrom[String]

Indicates whether or not a CodeDelegate object has another object as a base.

Kind

Gets an enumeration that defines the type of object.

Language

Gets the programming language used to author the code.

Members

Gets the collection of items this CodeDelegate element contains.

Name

Sets or gets the name of the CodeDelegate object.

Namespace

Gets an object defining the parent namespace of the delegate.

Parameters

Gets a collection of parameters for this CodeDelegate.

Parent

Gets the immediate parent object of a CodeDelegate object.

ProjectItem

Gets the ProjectItem object associated with the CodeDelegate object.

Prototype[Int32]

Returns a string holding the stub definition of this delegate.

StartPoint

Gets a TextPoint object that defines the beginning of the delegate.

Type

Sets or gets an object representing the programmatic type of the delegate.

Methods

AddAttribute(String, String, Object)

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

AddBase(Object, Object)

Adds an item to the list of inherited objects.

AddParameter(String, Object, Object)

Creates a new parameter for the delegate and inserts the code in the correct location.

GetEndPoint(vsCMPart)

Returns a TextPoint object that marks the end of the delegate definition.

GetStartPoint(vsCMPart)

Returns a TextPoint object that defines the beginning of the delegate definition.

RemoveBase(Object)

Removes an object from the list of bases.

RemoveMember(Object)

Removes a member from the delegate.

RemoveParameter(Object)

Removes a parameter from the delegate's argument list.

Applies to