Click to Rate and Give Feedback
MSDN
MSDN Library
Office Development
SDK Documentation
RichHtmlField Class
 AllowExternalUrls Property

  Switch on low bandwidth view
Community Content
In this section
Statistics Annotations (0)
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)
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; }

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker