Condividi tramite


EditorOptionDefinition<T>.IsValid Method (Object%)

Determines whether the proposed value is valid.

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

Syntax

'Dichiarazione
Public Overrides NotOverridable Function IsValid ( _
    ByRef proposedValue As Object _
) As Boolean
public override sealed bool IsValid(
    ref Object proposedValue
)
public:
virtual bool IsValid(
    Object^% proposedValue
) override sealed
abstract IsValid : 
        proposedValue:Object byref -> bool 
override IsValid : 
        proposedValue:Object byref -> bool 
public override final function IsValid(
    proposedValue : Object
) : boolean

Parameters

  • proposedValue
    Type: System.Object%
    The proposed value for this option.

Return Value

Type: System.Boolean
true if the value is valid, otherwise false.

Remarks

By the time the value is passed to this method, it has already been checked to be of the correct ValueType. The implementer of this method may modify the value.

.NET Framework Security

See Also

Reference

EditorOptionDefinition<T> Class

IsValid Overload

Microsoft.VisualStudio.Text.Editor Namespace