Proprietà VCCLCompilerTool.CallingConvention
Ottiene o imposta la convenzione di chiamata predefinita per l'applicazione. L'oggetto CallingConvention espone la funzionalità delle opzioni /Gd, /Gr, /Gv, /Gz (Convenzione di chiamata) del compilatore.
Spazio dei nomi: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Sintassi
'Dichiarazione
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)
Valore proprietà
Tipo: Microsoft.VisualStudio.VCProjectEngine.callingConventionOption
Enumerazione callingConventionOption.
Esempi
Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.
Nell'esempio riportato di seguito la proprietà CallingConvention nell'ambiente di sviluppo integrato (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
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.