ModelMetadata Class
Inheritance Hierarchy
System.Object
System.Web.Http.Metadata.ModelMetadata
System.Web.Http.Metadata.Providers.CachedModelMetadata<TPrototypeCache>
Namespace: System.Web.Http.Metadata
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Class ModelMetadata
'Usage
Dim instance As ModelMetadata
public class ModelMetadata
public ref class ModelMetadata
type ModelMetadata = class end
public class ModelMetadata
The ModelMetadata type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ModelMetadata | Initializes a new instance of the ModelMetadata class. |
Top
Properties
Name | Description | |
---|---|---|
AdditionalValues | Gets a dictionary that contains additional metadata about the model. | |
ContainerType | Gets or sets the type of the container for the model. | |
ConvertEmptyStringToNull | Gets or sets a value that indicates whether empty strings that are posted back in forms should be converted to null. | |
Description | Gets or sets the description of the model. | |
IsComplexType | Gets or sets a value that indicates whether the model is a complex type. | |
IsNullableValueType | Gets a value that indicates whether the type is nullable. | |
IsReadOnly | Gets or sets a value that indicates whether the model is read-only. | |
Model | Gets the value of the model. | |
ModelType | Gets the type of the model. | |
Properties | Gets a collection of model metadata objects that describe the properties of the model. | |
PropertyName | Gets the property name. | |
Provider | Gets or sets the provider. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetDisplayName | Gets the display name for the model. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
GetValidators | Gets a list of validators for the model. | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.