VCCodeFunction.FunctionKind Property
Gets an enumeration describing how a function is used.
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
Property Value
Type: EnvDTE.vsCMFunction
A vsCMFunction value.
Remarks
FunctionKind returns the type of the function, such as a Property Get, a Property Let, a Sub, or a Function.
The vsCMFunction values are meant to be bitwise OR'd together. Visual C++ combines several of these values to accurately describe a function. For example:
virtual int MyProc() const = 0;
MyProc results in a value of (vsCMFunctionFunction | vsCMFunctionVirtual | vsCMFunctionConstant | vsCMFunctionPure | vsCMFunctionTopLevel).
Another example:
inline void AnotherOne()
results in a value of (vsCMFunctionSub | vsCMFunctionInline, vsCMFunctionTopLevel).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.VCCodeModel Namespace
Other Resources
How to: Compile and Run the Automation Object Model Code Examples