Freigeben über


VCCodeFunction.FunctionKind-Eigenschaft

Ruft eine Enumeration ab, die die Verwendung einer Funktion beschreibt.

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

'Declaration
ReadOnly Property FunctionKind As vsCMFunction
vsCMFunction FunctionKind { get; }
property vsCMFunction FunctionKind {
    vsCMFunction get ();
}
abstract FunctionKind : vsCMFunction with get
function get FunctionKind () : vsCMFunction

Eigenschaftswert

Typ: vsCMFunction
Ein vsCMFunction-Wert.

Hinweise

FunctionKind gibt den Typ der Funktion zurück, beispielsweise Property Get, Property Let, Sub oder Function.

Die vsCMFunction-Werte sollen mit einem bitweisen Operator OR zusammengefügt werden. Visual C++ vereint mehrere dieser Werte, um eine Funktion genau zu beschreiben. Beispiel:

virtual int MyProc() const = 0;

MyProc ergibt einen Wert von (vsCMFunctionFunction | vsCMFunctionVirtual | vsCMFunctionConstant | vsCMFunctionPure | vsCMFunctionTopLevel).

Ein anderes Beispiel:

inline void AnotherOne()

ergibt einen Wert von (vsCMFunctionSub | vsCMFunctionInline, vsCMFunctionTopLevel).

.NET Framework-Sicherheit

Siehe auch

Referenz

VCCodeFunction Schnittstelle

Microsoft.VisualStudio.VCCodeModel-Namespace

Weitere Ressourcen

Gewusst wie: Kompilieren und Ausführen der Codebeispiele für das Automatisierungsobjektmodell