RichHtmlField.AllowExternalUrls Property
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
'Declaration
<BrowsableAttribute(True)> _
Public Property AllowExternalUrls As Boolean
Get
Set
'Usage
Dim instance As RichHtmlField
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 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.