ModelMetadataIdentity Struct
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.
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 |
ContainerType |
Gets the Type defining the model property represented by the current
instance, or |
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 |
ParameterInfo |
Gets a descriptor for the parameter, or |
PropertyInfo |
Gets a descriptor for the property, or |
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. |