Share via


CachedModelMetadata<TPrototypeCache>.Watermark Property

Gets or sets a value that can be used as a watermark.

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

Syntax

'Declaration
Public Overrides NotOverridable Property Watermark As String 
    Get 
    Set
'Usage
Dim instance As CachedModelMetadata 
Dim value As String 

value = instance.Watermark

instance.Watermark = value
public override sealed string Watermark { get; set; }
public:
virtual property String^ Watermark {
    String^ get () override sealed;
    void set (String^ value) override sealed;
}
abstract Watermark : string with get, set 
override Watermark : string with get, set
override final function get Watermark () : String 
override final function set Watermark (value : String)

Property Value

Type: System.String
A value that can be used as a watermark.

Remarks

Use this property for text that might be displayed as a watermark when a model value is rendered and can be edited, such as in a text box. The default value is Nothing.

The getter returns the cached value if it is cached. If the value is not cached, it is put into the cache and returned.

See Also

Reference

CachedModelMetadata<TPrototypeCache> Class

System.Web.Mvc Namespace