Compartilhar via


ValidateEnumeratedArgumentsAttribute.ValidateElement(Object) Method

Definition

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.

Applies to