Partilhar via


Propriedade VCCLCompilerTool.InlineFunctionExpansion

Obtém ou define o nível de expansão de função in-line para a compilação. InlineFunctionExpansion expõe a funcionalidade das opções de /Ob (expansão de função embutida) do compilador.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (em Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxe

'Declaração
Property InlineFunctionExpansion As inlineExpansionOption
inlineExpansionOption InlineFunctionExpansion { get; set; }
property inlineExpansionOption InlineFunctionExpansion {
    inlineExpansionOption get ();
    void set (inlineExpansionOption value);
}
abstract InlineFunctionExpansion : inlineExpansionOption with get, set
function get InlineFunctionExpansion () : inlineExpansionOption 
function set InlineFunctionExpansion (value : inlineExpansionOption)

Valor de propriedade

Tipo: Microsoft.VisualStudio.VCProjectEngine.inlineExpansionOption
Um valor de inlineExpansionOption .

Exemplos

Consulte Como compilar um código de exemplo para extensibilidade do modelo de projeto para obter informações sobre como criar e executar esse exemplo.

O exemplo a seguir altera a propriedade de InlineFunctionExpansion no ambiente de desenvolvimento integrado (IDE):

' add reference to Microsoft.VisualStudio.VCProjectEngine.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim tool As VCCLCompilerTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCCLCompilerTool")
        tool.InlineFunctionExpansion = inlineExpansionOption.expandAnySuitable
    End Sub
End Module

Segurança do .NET Framework

Consulte também

Referência

VCCLCompilerTool Interface

Namespace Microsoft.VisualStudio.VCProjectEngine