VCMidlTool.ErrorCheckAllocations-Eigenschaft
Ruft einen Wert ab, der angibt, ob auf Fehler aufgrund von ungenügendem Arbeitsspeicher überprüft werden soll, oder legt diesen fest.
Namespace: Microsoft.VisualStudio.VCProjectEngine
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Syntax
'Declaration
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)
Eigenschaftswert
Typ: Boolean
true , wenn auf Fehler aufgrund von ungenügendem Arbeitsspeicher überprüft wird, andernfalls false.
Hinweise
ErrorCheckAllocations macht die Funktionen der Option /error MIDL verfügbar.
Informationen zum Kompilieren und Ausführen dieses Beispiels finden Sie unter Gewusst wie: Kompilieren von Beispielcode für die Erweiterbarkeit von Projektmodellen.
Beispiele
Im folgenden Beispiel wird die Eigenschaft ErrorCheckAllocations in der integrierten Entwicklungsumgebung (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-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.