Freigeben über


VCCLCompilerTool.CallingConvention-Eigenschaft

Ruft die Standardaufrufkonvention für die Anwendung ab oder legt diese fest. CallingConvention macht die Funktionalität der Compileroptionen /Gd, /Gr, /Gv, /Gz (Aufrufkonvention) verfügbar.

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

Syntax

'Declaration
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)

Eigenschaftswert

Typ: Microsoft.VisualStudio.VCProjectEngine.callingConventionOption
Eine callingConventionOption-Enumeration.

Beispiele

Siehe Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen zu Informationen darüber, wie dieses Beispiel kompiliert und ausgeführt wird.

Im folgenden Beispiel wird die Eigenschaft CallingConvention in der integrierten Entwicklungsumgebung (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

.NET Framework-Sicherheit

Siehe auch

Referenz

VCCLCompilerTool Schnittstelle

Microsoft.VisualStudio.VCProjectEngine-Namespace