共用方式為


CodeElement Class

 

A unit of code in a ProjectItem of the type defined by CodeElementKind.

Namespace:   Microsoft.VisualStudio.Tools.Applications
Assembly:  Microsoft.VisualStudio.Tools.Applications (in Microsoft.VisualStudio.Tools.Applications.dll)

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Tools.Applications.CodeElement
    Microsoft.VisualStudio.Tools.Applications.CodeClass
    Microsoft.VisualStudio.Tools.Applications.CodeFunction

Syntax

public class CodeElement
public ref class CodeElement 
type CodeElement = class end
Public Class CodeElement

Properties

Name Description
System_CAPS_pubproperty FullName

Gets the fully qualified name of the CodeElement.

System_CAPS_pubproperty Kind

Gets the kind of the CodeElement.

System_CAPS_pubproperty Name

Gets the name of the CodeElement.

Methods

Name Description
System_CAPS_pubmethod Activate()

Activates the parent ProjectItem in the IDE with the current CodeElement visible.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod Format()

Formats the CodeElement.

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Thread Safety

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.VisualStudio.Tools.Applications Namespace

Return to top