Share via


VCCLCompilerTool.CallingConvention (Propiedad)

Obtiene o establece la convención de llamada predeterminada de la aplicación. CallingConvention expone la funcionalidad de las opciones /Gd, /Gr, /Gv, /Gz (Convención de llamada) del compilador.

Espacio de nombres:  Microsoft.VisualStudio.VCProjectEngine
Ensamblado:  Microsoft.VisualStudio.VCProjectEngine (en Microsoft.VisualStudio.VCProjectEngine.dll)

Sintaxis

'Declaración
Property CallingConvention As callingConventionOption
callingConventionOption CallingConvention { get; set; }
property callingConventionOption CallingConvention {
    callingConventionOption get ();
    void set (callingConventionOption value);
}
abstract CallingConvention : callingConventionOption with get, set
function get CallingConvention () : callingConventionOption 
function set CallingConvention (value : callingConventionOption)

Valor de propiedad

Tipo: Microsoft.VisualStudio.VCProjectEngine.callingConventionOption
Enumeración callingConventionOption.

Ejemplos

Vea Cómo: Compilar el código de ejemplo de extensibilidad del modelo de proyecto para obtener información sobre cómo compilar y ejecutar este ejemplo.

En el ejemplo siguiente se modifica la propiedad CallingConvention en el entorno de desarrollo 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.CallingConvention = _
          callingConventionOption.callConventionFastCall
    End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCCLCompilerTool Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)