Share via


BaseRichField.DefaultAssetLocation Property

Gets or sets the server-relative URL string to the default location in SharePoint Server from which to add links to this control.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property DefaultAssetLocation As String
    Get
    Set
'Usage
Dim instance As BaseRichField
Dim value As String

value = instance.DefaultAssetLocation

instance.DefaultAssetLocation = value
[BrowsableAttribute(true)]
public string DefaultAssetLocation { get; set; }

Property Value

Type: System.String
Server-relative URL string to the default location in SharePoint Server from which to add links to this control. Default value is an empty string.

Remarks

This URL should begin with either "~SiteCollection/" or "~Site/" followed by the relative URL to the desired location. If this URL refers to a valid location and one to which the authoring user has access, the Look In section on the left side of the Asset Picker dialog box displays the URL.

See Also

Reference

BaseRichField Class

BaseRichField Members

Microsoft.SharePoint.Publishing.WebControls Namespace

[P:Microsoft.SharePoint.Publishing.WebControls.RichImageField.DefaultAssetImageLocationP:Microsoft.SharePoint.Publishing.WebControls.RichHtmlField.DefaultAssetImageLocation]