다음을 통해 공유


VCMidlTool.ErrorCheckAllocations 속성

메모리 부족 오류를 검사할지 여부를 나타내는 값을 가져오거나 설정합니다.

네임스페이스:  Microsoft.VisualStudio.VCProjectEngine
어셈블리:  Microsoft.VisualStudio.VCProjectEngine(Microsoft.VisualStudio.VCProjectEngine.dll)

구문

‘선언
Property ErrorCheckAllocations As Boolean
bool ErrorCheckAllocations { get; set; }
property bool ErrorCheckAllocations {
    bool get ();
    void set (bool value);
}
abstract ErrorCheckAllocations : bool with get, set
function get ErrorCheckAllocations () : boolean 
function set ErrorCheckAllocations (value : boolean)

속성 값

형식: Boolean
메모리 부족 오류를 검사하면 true이고, 그렇지 않으면 false입니다.

설명

ErrorCheckAllocations/error MIDL 옵션의 기능을 제공 합니다.

참고 방법: 프로젝트 모델 확장성에 대한 예제 코드 컴파일 컴파일 및이 예제를 실행 하는 방법에 대 한 내용은.

예제

다음 예제에서는 수정 된 ErrorCheckAllocations 통합된 개발 환경 (IDE)에서 속성:

[Visual Basic]

' 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 VCMidlTool
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        tool = cfg.Tools("VCMIDLTool")
        tool.ErrorCheckAllocations = True
    End Sub
End Module

.NET Framework 보안

참고 항목

참조

VCMidlTool 인터페이스

Microsoft.VisualStudio.VCProjectEngine 네임스페이스