Partager via


EditorOptionDefinition<T>.IsValid Method

Definition

Overloads

IsValid(Object)

Determines whether the proposed value is valid.

IsValid(T)

Determines whether the proposed value is valid.

IsValid(Object)

Determines whether the proposed value is valid.

public:
 override bool IsValid(System::Object ^ % proposedValue);
 override sealed bool IsValid(winrt::Windows::Foundation::IInspectable const & & proposedValue);
public override sealed bool IsValid (ref object proposedValue);
override this.IsValid : obj -> bool
Public Overrides NotOverridable Function IsValid (ByRef proposedValue As Object) As Boolean

Parameters

proposedValue
Object

The proposed value for this option.

Returns

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.

Applies to

IsValid(T)

Determines whether the proposed value is valid.

public:
 virtual bool IsValid(T % proposedValue);
public:
 virtual bool IsValid(T &  proposedValue);
 virtual bool IsValid(T & proposedValue);
public virtual bool IsValid (ref T proposedValue);
override this.IsValid : 'T -> bool
Public Overridable Function IsValid (ByRef proposedValue As T) As Boolean

Parameters

proposedValue
T

The proposed value for this option.

Returns

true if the value is valid, otherwise false.

Remarks

The implementer of this method may modify the value.

Applies to