This topic has not yet been rated - Rate this topic

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
public enum vsCMFunction
public enum vsCMFunction
  Member name Description
vsCMFunctionComMethod A COM method. 
vsCMFunctionConstant A constant. 
vsCMFunctionConstructor A constructor. 
vsCMFunctionDestructor A destructor. 
vsCMFunctionFunction A function. 
vsCMFunctionInline An inline function. 
vsCMFunctionOperator An operator. 
vsCMFunctionOther A type of function not in this list. 
vsCMFunctionPropertyAssign A property assignment function. 
vsCMFunctionPropertyGet A property get. 
vsCMFunctionPropertyLet A property let. 
vsCMFunctionPropertySet A property set. 
vsCMFunctionPure A pure function. 
vsCMFunctionPutRef A put reference. 
vsCMFunctionShared A shared function. 
vsCMFunctionSub A subexpression. 
vsCMFunctionTopLevel A top-level function. 
vsCMFunctionVirtual A 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).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ