System.Web Namespace
Encapsulates all HTTP-specific information about an individual HTTP request.
Visibility |
Name |
Parameters |
Return Type |
public |
AcceptWebSocketRequest |
(
Func`2
userFunc
,
AspNetWebSocketOptions
options
)
|
Void
|
public |
AcceptWebSocketRequest |
(
Func`2
userFunc
)
|
Void
|
public |
AddError |
(
Exception
errorInfo
)
|
Void
|
public |
AddOnRequestCompleted |
(
Action`1
callback
)
|
ISubscriptionToken
|
public |
ClearError |
( )
|
Void
|
public |
DisposeOnPipelineCompleted |
(
IDisposable
target
)
|
ISubscriptionToken
|
public static |
GetAppConfig |
(
String
name
)
|
Object
|
public |
GetConfig |
(
String
name
)
|
Object
|
public static |
GetGlobalResourceObject |
(
String
classKey
,
String
resourceKey
,
CultureInfo
culture
)
|
Object
|
public static |
GetGlobalResourceObject |
(
String
classKey
,
String
resourceKey
)
|
Object
|
public static |
GetLocalResourceObject |
(
String
virtualPath
,
String
resourceKey
)
|
Object
|
public static |
GetLocalResourceObject |
(
String
virtualPath
,
String
resourceKey
,
CultureInfo
culture
)
|
Object
|
public |
GetSection |
(
String
sectionName
)
|
Object
|
public |
RemapHandler |
(
IHttpHandler
handler
)
|
Void
|
public |
RewritePath |
(
String
filePath
,
String
pathInfo
,
String
queryString
,
Boolean
setClientFilePath
)
|
Void
|
public |
RewritePath |
(
String
path
)
|
Void
|
public |
RewritePath |
(
String
path
,
Boolean
rebaseClientPath
)
|
Void
|
public |
RewritePath |
(
String
filePath
,
String
pathInfo
,
String
queryString
)
|
Void
|
public |
SetSessionStateBehavior |
(
SessionStateBehavior
sessionStateBehavior
)
|
Void
|
|
Classes that inherit the IHttpModule and IHttpHandler interfaces are provided a reference to an HttpContext object for the current HTTP request. The object provides access to the intrinsic Request, Response, and Server objects for the request.
Request.Context.propertyName = value;
Request.Context.methodName ( arguments );
Request.Context.propertyName = value
Request.Context.methodName ( arguments ) |
|
C# |
VB |
Type var = Request.Context.propertyName;
Type var = Request.Context.collectionName [ key ];
Type var = Request.Context.methodName ( arguments );
Dim var as Type = Request.Context.propertyName
Dim var as Type = Request.Context.collectionName ( key )
Dim var as Type = Request.Context.methodName ( arguments ) |
|
C# |
VB |
|
|