TeamFoundationApplicationCore.ApplySslRestriction Method
Apply SSL restriction by redirecting to an https url or returning an error code.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Shared Sub ApplySslRestriction ( _
application As HttpApplication _
)
public static void ApplySslRestriction(
HttpApplication application
)
public:
static void ApplySslRestriction(
HttpApplication^ application
)
static member ApplySslRestriction :
application:HttpApplication -> unit
public static function ApplySslRestriction(
application : HttpApplication
)
Parameters
- application
Type: System.Web.HttpApplication
Remarks
Only throws an exception in some cases. Callers should return after ApplySslRestriction.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.