AssetUrlSelector.DefaultToLastUsedLocation Property

Determines whether the last stored location is used to determine the initial location when the Asset Picker dialog box opens.

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

Syntax

'Declaration
Public Property DefaultToLastUsedLocation As Boolean
    Get
    Set
'Usage
Dim instance As AssetUrlSelector
Dim value As Boolean

value = instance.DefaultToLastUsedLocation

instance.DefaultToLastUsedLocation = value
public bool DefaultToLastUsedLocation { get; set; }

Property Value

Type: System.Boolean
Defaults to true.
If set to true, the last stored location is ignored when determining the dialog box's initial location when the Asset Picker dialog box opens.
If set to false, when there is no current AssetUrl property value, the Asset Picker dialog box opens at the location of any DefaultOpenLocationUrl property that is specified or at the known locations for the current site and site collection that are displayed in the "Look In" section on the left side of the Asset Picker dialog box.

Examples

        // These values control the appearance and behavior
        // of the Asset Picker dialog box.
        private const bool SampleDefaultToLastUsedLocation = false;

            // Set values for the apperance and behavior of the asset picker dialog
            assetSelector.DefaultToLastUsedLocation = SampleDefaultToLastUsedLocation;

See Also

Reference

AssetUrlSelector Class

AssetUrlSelector Members

Microsoft.SharePoint.Publishing.WebControls Namespace

AssetUrlSelector