Share via


ModelMetadataIdentity Struct

Definition

A key type which identifies a ModelMetadata.

public value class ModelMetadataIdentity : IEquatable<Microsoft::AspNetCore::Mvc::ModelBinding::Metadata::ModelMetadataIdentity>
public struct ModelMetadataIdentity : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity>
public readonly struct ModelMetadataIdentity : IEquatable<Microsoft.AspNetCore.Mvc.ModelBinding.Metadata.ModelMetadataIdentity>
type ModelMetadataIdentity = struct
Public Structure ModelMetadataIdentity
Implements IEquatable(Of ModelMetadataIdentity)
Inheritance
ModelMetadataIdentity
Implements

Properties

ConstructorInfo

Gets a descriptor for the constructor, or null if this instance does not represent a constructor.

ContainerType

Gets the Type defining the model property represented by the current instance, or null if the current instance does not represent a property.

MetadataKind

Gets a value indicating the kind of metadata represented by the current instance.

ModelType

Gets the Type represented by the current instance.

Name

Gets the name of the current instance if it represents a parameter or property, or null if the current instance represents a type.

ParameterInfo

Gets a descriptor for the parameter, or null if this instance does not represent a parameter.

PropertyInfo

Gets a descriptor for the property, or null if this instance does not represent a property.

Methods

Equals(ModelMetadataIdentity)

Indicates whether the current object is equal to another object of the same type.

Equals(Object)

Indicates whether this instance and a specified object are equal.

ForConstructor(ConstructorInfo, Type)

Creates a ModelMetadataIdentity for the provided parameter with the specified model type.

ForParameter(ParameterInfo, Type)

Creates a ModelMetadataIdentity for the provided parameter with the specified model type.

ForParameter(ParameterInfo)

Creates a ModelMetadataIdentity for the provided parameter.

ForProperty(PropertyInfo, Type, Type)

Creates a ModelMetadataIdentity for the provided property.

ForProperty(Type, String, Type)
Obsolete.
Obsolete.

Creates a ModelMetadataIdentity for the provided property.

ForType(Type)

Creates a ModelMetadataIdentity for the provided model Type.

GetHashCode()

Returns the hash code for this instance.

Applies to