Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

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

Community Additions

© 2015 Microsoft