vsCMFunction Enumeration
Collapse the table of content
Expand the table of content
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. ArchiveDisclaimer

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 Enumeration vsCMFunction
Dim instance As vsCMFunction

public enum vsCMFunction
public enum vsCMFunction

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

© 2016 Microsoft