ValidationMessageKeyContext.DeclaringType Property
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.
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