ValidateEnumeratedArgumentsAttribute.ValidateElement(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.
Abstract method to be overridden by subclasses, implementing the validation of each parameter argument.
protected:
abstract void ValidateElement(System::Object ^ element);
protected:
abstract void ValidateElement(Platform::Object ^ element);
abstract void ValidateElement(winrt::Windows::Foundation::IInspectable const & element);
protected abstract void ValidateElement (object element);
abstract member ValidateElement : obj -> unit
Protected MustOverride Sub ValidateElement (element As Object)
Parameters
- element
- Object
One of the parameter arguments.
Exceptions
Should be thrown for any validation failure.
Remarks
Validate that the value of element
is valid, and throw ValidationMetadataException if it is invalid.