vsCMFunction Enumeration
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

vsCMFunction Enumeration

A constant indicating the type of function, such as a property-get or a method.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

public enum vsCMFunction

Member nameDescription
vsCMFunctionOtherA type of function not in this list.
vsCMFunctionConstructorA constructor.
vsCMFunctionPropertyGetA property get.
vsCMFunctionPropertyLetA property let.
vsCMFunctionPropertySetA property set.
vsCMFunctionPutRefA put reference.
vsCMFunctionPropertyAssignA property assignment function.
vsCMFunctionSubA subexpression.
vsCMFunctionFunctionA function.
vsCMFunctionTopLevelA top-level function.
vsCMFunctionDestructorA destructor.
vsCMFunctionOperatorAn operator.
vsCMFunctionVirtualA virtual function.
vsCMFunctionPureA pure function.
vsCMFunctionConstantA constant.
vsCMFunctionSharedA shared function.
vsCMFunctionInlineAn inline function.
vsCMFunctionComMethodA COM method.

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

Show:
© 2016 Microsoft