Freigeben über


EditorOptionDefinition<T>.IsValid-Methode (T%)

Bestimmt, ob der vorgeschlagene Wert gültig ist.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Public Overridable Function IsValid ( _
    ByRef proposedValue As T _
) As Boolean
public virtual bool IsValid(
    ref T proposedValue
)
public:
virtual bool IsValid(
    T% proposedValue
)
abstract IsValid : 
        proposedValue:'T byref -> bool  
override IsValid : 
        proposedValue:'T byref -> bool
public function IsValid(
    proposedValue : T
) : boolean

Parameter

  • proposedValue
    Typ: T%

    Der vorgeschlagene Wert für diese Option.

Rückgabewert

Typ: Boolean
true , wenn der Wert gültig ist, andernfalls false.

Hinweise

Die Implementierung dieser Methode kann den Wert ändert.

.NET Framework-Sicherheit

Siehe auch

Referenz

EditorOptionDefinition<T> Klasse

IsValid-Überladung

Microsoft.VisualStudio.Text.Editor-Namespace