StateManager.Set Generic Method (T, String)
Sets the state information associated with the specified SOAP actor in a SOAP message exchange.
Namespace: Microsoft.Web.Services3
Assembly: Microsoft.Web.Services3 (in microsoft.web.services3.dll)
Usage
'Usage
Public Class SomeType1
End Class
Dim value As SomeType1
Dim actor As String
Dim returnValue As SomeType1
Dim stateManager1 As StateManager
returnValue = stateManager1.Set(Of SomeType1)(value, actor)
Syntax
'Declaration
Overloads Public Function Set(Of T)( _
ByVal value As T, _
ByVal actor As String _
) As T
public T Set<T>(
T value,
string actor
);
public:
generic<typename T>
T Set(
T value,
String^ actor
);
public T Set<T>(
T value,
System.String actor
);
JScript does not support Generics.
Parameters
- value
The value to set for the state information associated with the specified SOAP actor in a SOAP message exchange.
- actor
The SOAP actor for which to set the state information.
Return Value
The previous value for the state information associated with the specified SOAP actor in a SOAP message exchange.
Remarks
When adding state information to the StateManager class, the state must implement the System.Xml.Serialization.IXmlSerializable interface in order to be written out as XML by the WriteXml method.
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
StateManager Class
StateManager Members
Microsoft.Web.Services3 Namespace