Share via


SPWebApplication.UseExternalUrlZoneForAlerts property

When this is set to true and if a cross firewall url zone is configured, then it will be used in alerts' emails. If this is set to true and if a cross firewall url zone is not configured, then the Default zone url for the web application will be used in alerts' emails. Set this to false if you want legacy behaviour of having urls in alerts's emails belonging to the web application in which the alert was created.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property UseExternalUrlZoneForAlerts As Boolean
    Get
    Set
'Usage
Dim instance As SPWebApplication
Dim value As Boolean

value = instance.UseExternalUrlZoneForAlerts

instance.UseExternalUrlZoneForAlerts = value
public bool UseExternalUrlZoneForAlerts { get; set; }

Property value

Type: System.Boolean
A boolean value indicating if the Cross Firewall Url zone configured for the web application must be used for urls in alerts' emails. Default is true.

See also

Reference

SPWebApplication class

SPWebApplication members

Microsoft.SharePoint.Administration namespace