Defines the optional base class for XML Web services, which provides direct access to common ASP.NET objects, such as application and session state.
Assembly: System.Web.Services (in System.Web.Services.dll)
Gets the application object for the current HTTP request.
Gets the container for the component.(Inherited from MarshalByValueComponent.)
Gets the ASP.NET HttpContext for the current request, which encapsulates all HTTP-specific context used by the HTTP server to process Web requests.
Gets a value indicating whether the component is currently in design mode.(Inherited from MarshalByValueComponent.)
Gets the list of event handlers that are attached to this component.(Inherited from MarshalByValueComponent.)
Gets the HttpServerUtility for the current request.
Gets the HttpSessionState instance for the current request.
Gets or sets the site of the component.(Inherited from MarshalByValueComponent.)
Gets the version of the SOAP protocol used to make the SOAP request to the XML Web service.
Gets the ASP.NET server User object. Can be used to authenticate whether a user is authorized to execute the request.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from MarshalByValueComponent.)
Serves as the default hash function. (Inherited from Object.)
If you don't need access to the common ASP.NET objects, you can still create an XML Web service without deriving from Context.. Additional ASP.NET objects can be accessed through
XML Web service methods that have the OneWay property of either SoapRpcMethodAttribute or SoapDocumentMethodAttribute set to true, do not have access to their HttpContext. As such, accessing any of the properties of the class, from within that XML Web service method, return null.
If you are using the .NET Framework version 1.0 XML Web service methods that have either the SoapRpcMethodAttribute or SoapDocumentMethodAttribute attribute applied to them with the OneWay property of set to true, do not have access to their HttpContext using the static Current property. To access the HttpContext, derive the class implementing the XML Web service method from and access the Context property.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.