Partilhar via


UrlField.Value Property

Gets or sets the values of Text and Url by using a temporary SPFieldUrlValue object or specially structured String.

Namespace:  Microsoft.SharePoint.WebControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Overrides Property Value As Object
    Get
    Set
'Usage
Dim instance As UrlField
Dim value As Object

value = instance.Value

instance.Value = value
public override Object Value { get; set; }

Property Value

Type: System.Object
An SPFieldUrlValue object (that has been cast to Object) that represents the values of the Text and Url properties.

Remarks

You can set Value either with a SPFieldUrlValue object or with a String that that has the following form.

URL_string,[ Text_string]

The URL_string is the URL (which must be followed by a comma) and the optional Text_string is the description or friendly name of the URL (which, if present, must be preceded by a space).

See Also

Reference

UrlField Class

UrlField Members

Microsoft.SharePoint.WebControls Namespace