Condividi tramite


SoapEnvelope.Context Property

Gets or sets message-specific data for the SOAP envelope.

Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)

Usage

'Usage
Dim soapEnvelope1 As SoapEnvelope

Dim returnValue As SoapContext
returnValue = soapEnvelope1.Context

Dim sampleValue As SoapContext
soapEnvelope1.Context = sampleValue

Syntax

'Declaration
Public Property Context() As SoapContext
public SoapContext Context {get; set;}
public:
property SoapContext^ Context {
    SoapContext^ get();
    void set(SoapContext^ value);
}
public SoapContext get_Context();
public void set_Context(SoapContext);
public function get Context() : SoapContext;
public function set Context(SoapContext);

Property Value

A SoapContext containing the message-specific data.

Exceptions

Exception type Condition
ArgumentNullException

Context is set to null.

Remarks

The Context property is used when communicating with input and output filters. When processing a message with a custom filter, the SOAP envelope can be modified by setting properties of the SoapContext.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server

Target Platforms

See Also

Reference

SoapEnvelope Class
SoapEnvelope Members
Microsoft.Web.Services3 Namespace