AssetUrlSelector.DefaultOpenLocationUrl propriedade
Obtém ou define o URL para um local este conjunto de sites para adicionar à parte superior da seção Examinar a caixa de diálogo Seletor de ativo .
Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (em Microsoft.SharePoint.Publishing.dll)
Sintaxe
'Declaração
Public Property DefaultOpenLocationUrl As String
Get
Set
'Uso
Dim instance As AssetUrlSelector
Dim value As String
value = instance.DefaultOpenLocationUrl
instance.DefaultOpenLocationUrl = value
public string DefaultOpenLocationUrl { get; set; }
Valor de propriedade
Tipo: System.String
O padrão é uma seqüência vazia.
Comentários
Essa URL deve começar com "~SiteCollection/" ou "~Site/" seguido o URL relativo no local desejado do site do SharePoint. Se esta URL refere-se a um local do SharePoint válido e um dos usuários criação tem permissão para acessá-lo, ele será exibido na seção Examinar no lado esquerdo da caixa de diálogo Seletor de ativo .
Quando DisplayLookInSection e DefaultToLastUsedLocation são a propriedade DefaultOpenLocationUrl definida como false, tem um local válido, e não há nenhuma propriedade atual de AssetUrl , a caixa de diálogo Seletor de ativo abre neste local e não exibe nenhum outro local em seu lado esquerdo. Esse comportamento recomenda que o usuário selecione uma URL do local indicado.
Exemplos
// These values control the appearance and behavior
// of the Asset Picker dialog box.
private const string SampleDefaultOpenLocationUrl = "~Site/Pages/";
// Set values for the appearance and behavior of the Asset Picker dialog box.
assetSelector.DefaultOpenLocationUrl = SampleDefaultOpenLocationUrl;
' These values control the appearance and behavior
' of the Asset Picker dialog box.
Private Const SampleDefaultOpenLocationUrl As String = "~Site/Pages/"
' Set values for the appearance and behavior of the Asset Picker dialog box.
assetSelector.DefaultOpenLocationUrl = SampleDefaultOpenLocationUrl