Condividi tramite


Proprietà VCMidlTool.ErrorCheckBounds

Ottiene o imposta un valore che indica un controllo degli errori di dimensione rispetto alle specifiche di lunghezza di trasmissione.

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

Sintassi

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

Valore proprietà

Tipo: System.Boolean
true indica che lo strumento MIDL controlla la dimensione delle matrici conformant-varianti e variabili in base alla specifica di lunghezza della trasmissione.In caso contrario, false.

Note

ErrorCheckBounds espone la funzionalità dell'opzione /error di MIDL.

Esempi

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

Nell'esempio seguente viene modificato ErrorCheckBounds proprietà nell'ambiente di sviluppo (IDE) integrato (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.ErrorCheckBounds = True
    End Sub
End Module

Sicurezza di .NET Framework

Vedere anche

Riferimenti

VCMidlTool Interfaccia

Spazio dei nomi Microsoft.VisualStudio.VCProjectEngine