VCCodeFunction.IsInline Property

Definition

Gets or sets the inline property of the function object.

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

Property Value

true if the function is defined as inline; otherwise, false.

Attributes

Examples

This example displays the name of each inline function.

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  

Remarks

Call IsInline to determine if an existing function is defined as an inline function or to define an existing function as inline.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Applies to