Share via


BaseRichUrlField.AllowExternalUrls Property

Gets or sets a Boolean value specifying whether to allow external URLs when validating the field value.

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 true, the RestrictUrlsToSiteCollection property is set to true and the GuidOfThisSiteCollection property is to ID during validation so that only URLs in the HTML that are in the current site collection are accepted as valid.

See Also

Reference

BaseRichUrlField Class

BaseRichUrlField Members

Microsoft.SharePoint.Publishing.WebControls Namespace