Share via


VCLinkerTool.HeapReserveSize (Propiedad)

Obtiene o establece un valor que especifica el tamaño total asignado al montón en memoria virtual.

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

Sintaxis

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

Valor de propiedad

Tipo: Int32
Tamaño total asignado al montón en memoria virtual.

Comentarios

HeapReserveSize expone la funcionalidad de la opción /HEAP (Establecer el tamaño del montón) del vinculador.

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.

Ejemplos

En el ejemplo siguiente se modifica la propiedad HeapReserveSize 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 VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.HeapReserveSize = 4096
  End Sub
End Module

Seguridad de .NET Framework

Vea también

Referencia

VCLinkerTool Interfaz

Microsoft.VisualStudio.VCProjectEngine (Espacio de nombres)