Partilhar via


BaseRichSelector.DefaultAssetLocation Property

Gets or sets the URL to a location in this site collection to add to the top of the "Look In" section of the Asset Picker dialog box when selecting a link URL.

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 BaseRichSelector
Dim value As String

value = instance.DefaultAssetLocation

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

Property Value

Type: System.String
The URL to the location. Defaults to an empty string.

Remarks

This URL should begin with either "~SiteCollection/" or "~Site/" followed by the relative URL to the specified location. If this location URL refers to a valid SharePoint Server 2010 location that the authoring user can access, the URL is displayed in the Look In section of the Asset Picker dialog box.

See Also

Reference

BaseRichSelector Class

BaseRichSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

DefaultAssetLocation