Compartilhar via


ModelMetadata.PropertyName Property

Gets the property name.

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

Syntax

'Declaration
Public ReadOnly Property PropertyName As String
    Get
public string PropertyName { get; }
public:
property String^ PropertyName {
    String^ get ();
}

Property Value

Type: System.String
The property name.

Remarks

If the model is not a property, the value of PropertyName is null reference (Nothing in Visual Basic).

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace