次の方法で共有


PSVariable.IsValidValue(Object) Method

Definition

Checks if the given value meets the validation attribute constraints on the PSVariable.

public:
 virtual bool IsValidValue(System::Object ^ value);
public:
 virtual bool IsValidValue(Platform::Object ^ value);
 virtual bool IsValidValue(winrt::Windows::Foundation::IInspectable const & value);
public virtual bool IsValidValue (object value);
abstract member IsValidValue : obj -> bool
override this.IsValidValue : obj -> bool
Public Overridable Function IsValidValue (value As Object) As Boolean

Parameters

value
Object

value which needs to be checked

Returns

Exceptions

If the validation metadata throws an exception.

Remarks

If value is null or if no attributes are set, then the value is deemed valid.

Applies to