PSVariable.IsValidValue(Object) Method
In this article
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
- value
- Object
value which needs to be checked
If the validation metadata throws an exception.
If value
is null or if no attributes are set, then the value is deemed valid.