Condividi tramite


CodeFunction Class

 

A function in a ProjectItem.

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

Syntax

public sealed class CodeFunction : CodeElement
public ref class CodeFunction sealed : CodeElement
[<Sealed>]
type CodeFunction = 
    class
        inherit CodeElement
    end
Public NotInheritable Class CodeFunction
    Inherits CodeElement

Properties

Name Description
System_CAPS_pubproperty Body

Gets or sets the text in the function body.

System_CAPS_pubproperty FullName

Gets the fully qualified name of the CodeElement.(Inherited from CodeElement.)

System_CAPS_pubproperty Kind

Gets the kind of the CodeElement.(Inherited from CodeElement.)

System_CAPS_pubproperty Name

Gets the name of the CodeElement.(Inherited from CodeElement.)

Methods

Name Description
System_CAPS_pubmethod Activate()

Activates the parent ProjectItem in the IDE with the current CodeElement visible.(Inherited from CodeElement.)

System_CAPS_pubmethod AppendText(String)

Appends text to the end of the function body.

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod Format()

Formats the CodeElement.(Inherited from CodeElement.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(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