DataAnnotationsModelMetadata Class
TOC
Collapse the table of content
Expand the table of content

DataAnnotationsModelMetadata Class

.NET Framework (current version)
 

Provides a container for common metadata, for the DataAnnotationsModelMetadataProvider class, and for the DataAnnotationsModelValidator class for a data model.

Namespace:   System.Web.ModelBinding
Assembly:  System.Web (in System.Web.dll)

System::Object
  System.Web.ModelBinding::ModelMetadata
    System.Web.ModelBinding::DataAnnotationsModelMetadata

public ref class DataAnnotationsModelMetadata : ModelMetadata

NameDescription
System_CAPS_pubpropertyAdditionalValues

Gets a collection that contains additional metadata about the model.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyContainerType

Gets the type of the container. (Inherited from ModelMetadata.)

System_CAPS_pubpropertyConvertEmptyStringToNull

Gets or sets a value that determines whether empty strings that are submitted in forms should be converted to null.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyDataTypeName

Gets or sets the name of the data type.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyDescription

Gets or sets text that describes the model.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyDisplayFormatString

Gets or sets a format string that should be applied when the model is displayed in display mode (as opposed to in edit mode).(Inherited from ModelMetadata.)

System_CAPS_pubpropertyDisplayName

Gets or sets the text to use in UI when the name of the model is displayed. (Inherited from ModelMetadata.)

System_CAPS_pubpropertyEditFormatString

Gets or sets the format string to use in UI in edit mode.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyHideSurroundingHtml

Gets or sets a value that determines whether surrounding HTML should be hidden.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyIsComplexType

Gets a value that specifies whether the model is a complex type.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyIsNullableValueType

Gets a value that specifies whether the model is a nullable value type.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyIsReadOnly

Gets or sets a value that specifies whether the model can be updated.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyIsRequired

Gets or sets a value that specifies whether the property is required.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyModel

Gets or sets the model object.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyModelType

Gets the type of the model.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyNullDisplayText

Gets the string that should be displayed when the model is null.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyOrder

Gets or sets an integer that indicates the order in which to display this property relative to other properties.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyProperties

Gets a collection of model metadata objects that describe the properties of the model.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyPropertyName

Gets the name of the property.(Inherited from ModelMetadata.)

System_CAPS_protpropertyProvider

Gets or sets the provider object for this metadata.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyRequestValidationEnabled

Gets or sets a value that specifies whether request validation is enabled.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyShortDisplayName

Gets or sets a short version of the display name.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyShowForDisplay

Gets or sets a value that specifies whether the model should be displayed in the UI in display mode (as opposed to edit mode).(Inherited from ModelMetadata.)

System_CAPS_pubpropertyShowForEdit

Gets or sets a value that specifies whether the property should be displayed in edit mode (as opposed to display mode).(Inherited from ModelMetadata.)

System_CAPS_pubpropertySimpleDisplayText

Gets or sets text to display for the model when the model represents a complex object(Inherited from ModelMetadata.)

System_CAPS_pubpropertyTemplateHint

Gets or sets a value that indicates what template (data control) should be used in UI for the model.(Inherited from ModelMetadata.)

System_CAPS_pubpropertyWatermark

Gets or sets watermark text for a text box.(Inherited from ModelMetadata.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetDisplayName()

Returns text to display as the name of the model in UI.(Inherited from ModelMetadata.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetSimpleDisplayText()

Returns text to display for the model when the model represents a complex object. (Overrides ModelMetadata::GetSimpleDisplayText().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodGetValidators(ModelBindingExecutionContext^)

Returns a collection of validators that apply to the model.(Inherited from ModelMetadata.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.5

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

Return to top
Show:
© 2016 Microsoft