Sdílet prostřednictvím


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
'Usage
Dim instance As VCCodeFunction
Dim value As Boolean

value = instance.IsInline

instance.IsInline = value
bool IsInline { get; set; }
property bool IsInline {
    bool get ();
    void set (bool value);
}
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

Permissions

See Also

Reference

VCCodeFunction Interface

VCCodeFunction Members

Microsoft.VisualStudio.VCCodeModel Namespace