Compartilhar via


BaseRichUrlField.AllowExternalUrls Property

Gets or sets the constraint to enable external URLs in the HTML when validating the value in this field.

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

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property AllowExternalUrls As Boolean
    Get
    Set
'Usage
Dim instance As BaseRichUrlField
Dim value As Boolean

value = instance.AllowExternalUrls

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

Property Value

Type: System.Boolean

Remarks

If this value is set to true, during validation it sets the RestrictUrlsToSiteCollection value to true and sets the GuidOfThisSiteCollection to ID so that only URLs in the HTML that are in the current site collection are accepted as valid.

Examples

RestrictUrlsToSiteCollection

GuidOfThisSiteCollection

See Also

Reference

BaseRichUrlField Class

BaseRichUrlField Members

Microsoft.SharePoint.Publishing.WebControls Namespace