다음을 통해 공유


EditorOptionDefinition.IsValid Method

Determines whether the proposed value is valid.

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 Object _
) As Boolean
public virtual bool IsValid(
    ref Object proposedValue
)
public:
virtual bool IsValid(
    Object^% proposedValue
)
abstract IsValid : 
        proposedValue:Object byref -> bool  
override IsValid : 
        proposedValue:Object byref -> bool
public function IsValid(
    proposedValue : Object
) : boolean

Parameters

  • proposedValue
    Type: Object%

    The proposed value for this option.

Return Value

Type: 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 Class

Microsoft.VisualStudio.Text.Editor Namespace