VCCodeFunction.FunctionKind 属性

定义

获取描述函数使用方法的枚举。

public:
 property EnvDTE::vsCMFunction FunctionKind { EnvDTE::vsCMFunction get(); };
public:
 property EnvDTE::vsCMFunction FunctionKind { EnvDTE::vsCMFunction get(); };
[System.Runtime.InteropServices.DispId(32)]
public EnvDTE.vsCMFunction FunctionKind { [System.Runtime.InteropServices.DispId(32)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(32)>]
[<get: System.Runtime.InteropServices.DispId(32)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.FunctionKind : EnvDTE.vsCMFunction
Public ReadOnly Property FunctionKind As vsCMFunction

属性值

vsCMFunction

一个 vsCMFunction 值。

属性

注解

FunctionKind 返回函数的类型,如属性 Get、属性 Let、Sub 或函数。

值应为 vsCMFunction 按位 "或"。 Visual C++ 结合了几个值,以准确描述函数。 例如:

virtual int MyProc() const = 0;

MyProc 导致的值为 (vsCMFunctionFunction | vsCMFunctionVirtual | vsCMFunctionConstant | vsCMFunctionPure | vsCMFunctionTopLevel)

另一个示例:

inline void AnotherOne()

导致的值为 (vsCMFunctionSub | vsCMFunctionInline, vsCMFunctionTopLevel)

适用于