SoapContext.Add Method
Adds an element with the specified key and value to the context property bag.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.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
) : Void;
Parameters
- key
The key of the element to add.
- value
The value of the element to add.
Exceptions
Exception type | Condition |
---|---|
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 2000, Windows 2000 Server, Windows 2000 Advanced Server
Target Platforms
See Also
Reference
SoapContext Class
SoapContext Members
Microsoft.Web.Services3 Namespace