ModelMetadata Class

Namespace:  System.Web.Http.Metadata
Assembly:  System.Web.Http (in System.Web.Http.dll)

public class ModelMetadata

The ModelMetadata type exposes the following members.

  NameDescription
Public methodModelMetadataInitializes a new instance of the ModelMetadata class.
Top

  NameDescription
Public propertyAdditionalValuesGets a dictionary that contains additional metadata about the model.
Public propertyContainerTypeGets or sets the type of the container for the model.
Public propertyConvertEmptyStringToNullGets or sets a value that indicates whether empty strings that are posted back in forms should be converted to null.
Public propertyDescriptionGets or sets the description of the model.
Public propertyIsComplexTypeGets or sets a value that indicates whether the model is a complex type.
Public propertyIsNullableValueTypeGets a value that indicates whether the type is nullable.
Public propertyIsReadOnlyGets or sets a value that indicates whether the model is read-only.
Public propertyModelGets the value of the model.
Public propertyModelTypeGets the type of the model.
Public propertyPropertiesGets a collection of model metadata objects that describe the properties of the model.
Public propertyPropertyNameGets the property name.
Protected propertyProviderGets or sets the provider.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetDisplayNameGets the display name for the model.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetValidatorsGets a list of validators for the model.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: