RichHtmlField.AllowExternalUrls Property (Microsoft.SharePoint.Publishing.WebControls)
Gets or sets the constraint that allows external URLs in the HTML when validating the value in this RichHtmlField object.

Namespace: Microsoft.SharePoint.Publishing.WebControls
Assembly: Microsoft.SharePoint.Publishing (in microsoft.sharepoint.publishing.dll)
Syntax

Visual Basic (Declaration)
<BrowsableAttribute(True)> _
Public Property AllowExternalUrls As Boolean
Visual Basic (Usage)
Dim instance As RichHtmlField
Dim value As Boolean

value = instance.AllowExternalUrls

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

If this property is set to True, during validation, it sets the RestrictUrlsToSiteCollection property to True and sets the GuidOfThisSiteCollection property to the >ID property of the current site collection. This means that only URLs in the HTML that are in the current site collection are accepted as valid.

See Also

Tags :


Page view tracker