VCCodeFunction::IsInline Property

 

Gets or sets the inline property of the function object.

Namespace:   Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

property bool IsInline {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

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

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.

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
Return to top
Show: