Condividi tramite


Proprietà VCLinkerTool.SwapRunFromNet

Ottiene o imposta un valore che indica se l'applicazione deve essere eseguita dall'area di scambio della rete.

Spazio dei nomi:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Sintassi

'Dichiarazione
Property SwapRunFromNet As Boolean
bool SwapRunFromNet { get; set; }
property bool SwapRunFromNet {
    bool get ();
    void set (bool value);
}
abstract SwapRunFromNet : bool with get, set
function get SwapRunFromNet () : boolean 
function set SwapRunFromNet (value : boolean)

Valore proprietà

Tipo: Boolean
true se l'applicazione deve essere eseguita dall'area di scambio della rete; in caso contrario, false.

Note

L'oggetto SwapRunFromNet espone la funzionalità dell'opzione del linker /SWAPRUN (caricamento dell'output del linker nel file di scambio).

Vedere Procedura: compilare codice di esempio per l'Extensibility del modello di progetto per informazioni su come compilare ed eseguire l'esempio.

Esempi

Nell'esempio riportato di seguito la proprietà SwapRunFromNet 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 VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.SwapRunFromNet = True
  End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCLinkerTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine