VCLinkerTool.HeapCommitSize 属性

定义

获取或设置一个值,该值指定物理内存中堆分配的合计大小。

public:
 property int HeapCommitSize { int get(); void set(int value); };
public:
 property int HeapCommitSize { int get(); void set(int value); };
[System.Runtime.InteropServices.DispId(67)]
public int HeapCommitSize { [System.Runtime.InteropServices.DispId(67)] get; [System.Runtime.InteropServices.DispId(67)] set; }
[<System.Runtime.InteropServices.DispId(67)>]
[<get: System.Runtime.InteropServices.DispId(67)>]
[<set: System.Runtime.InteropServices.DispId(67)>]
member this.HeapCommitSize : int with get, set
Public Property HeapCommitSize As Integer

属性值

Int32

一个指定物理内存中堆分配合计大小的值。

属性

示例

下面的示例在 HeapCommitSize 集成开发环境 (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.HeapCommitSize = 4096  
  End Sub  
End Module  

注解

HeapCommitSize 公开 /HEAP (Set 堆 Size) 链接器选项的功能。

适用于