Xperience 13 API Reference
Xperience 13 API Reference
Namespaces
CMS Namespaces
CMS.Helpers Namespaces
CMS.Helpers.Extensions
HttpRequestExtensions Class
HttpRequestExtensions Methods
GetEffectiveUrl Method
GetEffectiveUrl Method (IRequest)
GetEffectiveUrl Method (Uri, Boolean)
HttpRequestExtensions
GetEffectiveUrl Method (IRequest)
Returns effective URL with correct port number based on
IsSSL
property for
Url
property.
Namespace:
CMS.Helpers.Extensions
Assembly:
CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
Copy
public
static
Uri
GetEffectiveUrl
(
this
IRequest
request
)
Parameters
request
Type:
CMS.Base.Internal
IRequest
IRequest
object.
Return Value
Type:
Uri
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRequest
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
Exceptions
Exception
Condition
ArgumentNullException
request
Remarks
When SSL offloading proxy is used
Url
does not contain valid port and scheme.
See Also
Reference
HttpRequestExtensions Class
GetEffectiveUrl Overload
CMS.Helpers.Extensions Namespace
Copyright (c) 2023 Kentico Software
Send comments on this topic to
support@kentico.com