Partager via


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)

Syntax

'Declaration
Property IsInline As Boolean
bool IsInline { get; set; }
property bool IsInline {
    bool get ();
    void set (bool value);
}
abstract IsInline : bool with get, set
function get IsInline () : boolean 
function set IsInline (value : boolean)

Property Value

Type: System.Boolean
true if the function is defined as inline; otherwise, false.

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.

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

.NET Framework Security

See Also

Reference

VCCodeFunction Interface

Microsoft.VisualStudio.VCCodeModel Namespace