PSVariable.IsValidValue(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.