ValidationMessageKeyContext.DeclaringType Property

Definition

Gets the type associated with the member being validated: the containing type for a property, the validated type itself for type-level validation, or the parameter's own type for a parameter.

public:
 property Type ^ DeclaringType { Type ^ get(); void set(Type ^ value); };
public Type DeclaringType { get; init; }
member this.DeclaringType : Type with get, set
Public Property DeclaringType As Type

Property Value

Applies to