ValidateEnumeratedArgumentsAttribute.ValidateElement(Object) Method

Definition

Overridden by subclasses to implement 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.

Applies to