VCCodeFunction.IsInline 属性

定义

获取或设置函数对象的内联属性。

public:
 property bool IsInline { bool get(); void set(bool value); };
public:
 property bool IsInline { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(581)]
public bool IsInline { [System.Runtime.InteropServices.DispId(581)] get; [System.Runtime.InteropServices.DispId(581)] set; }
[<System.Runtime.InteropServices.DispId(581)>]
[<get: System.Runtime.InteropServices.DispId(581)>]
[<set: System.Runtime.InteropServices.DispId(581)>]
member this.IsInline : bool with get, set
Public Property IsInline As Boolean

属性值

Boolean

true 如果函数定义为内联,则为; 否则为。否则为 false

属性

示例

此示例显示每个内联函数的名称。

Sub GetInlineFunctions()  
    Dim vcCM as VCCodeModel  
    Dim vcFunc as VCCodeFunction  
    vcCM = DTE.Solution.Item(1).CodeModel  
    For Each vcFunc in vcCM.Functions  
        If (vcFunc.IsInline()) Then  
            MsgBox(vcFunc.DisplayName + "is an inline function")  
        End If  
    Next  
End Sub  

注解

调用 IsInline 以确定现有函数是定义为内联函数还是将现有函数定义为内联函数。

有关如何编译和运行此示例的信息,请参阅 如何:编译 Visual C++ 代码模型扩展性的示例代码

适用于