Share via


SoapContext.Add Method

Adds an element with the specified key and value to the context property bag.

Namespace: Microsoft.Web.Services2
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim key As String
Dim value As Object
Dim soapContext1 As SoapContext
soapContext1.Add(key, value)

Syntax

'Declaration
Public Sub Add( _
    ByVal key As String, _
    ByVal value As Object _
)
public void Add(
    string key, 
    object value
);
public: Void Add(
    String^ key, 
    Object^ value
);
public void Add(
    System.String key, 
    System.Object value
);
public function Add(
     key : String, 
     value : Object
);

Parameters

  • key
    The key of the element to add.
  • value
    The value of the element to add.

Exceptions

Exception type Condition
System.ArgumentNullException

key is null.

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 Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

SoapContext Class
Microsoft.Web.Services2 Namespace

Other Resources

SoapContext Members