Partager via


StateManager.Set Generic Method (T)

Sets the state information associated with the ultimate receiver of the SOAP request 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 returnValue As SomeType1
Dim stateManager1 As StateManager
returnValue = stateManager1.Set(Of SomeType1)(value)

Syntax

'Declaration
Overloads Public Function Set(Of T)( _
    ByVal value As T _
) As T
public T Set<T>(
    T value
);
public:
generic<typename T>
T Set(
    T value
);
public T Set<T>(
    T value
);
JScript does not support Generics.

Parameters

  • value
    The value to set for the state information associated with the ultimate receiver of the SOAP request in a SOAP message exchange.

Return Value

The previous value for the state information associated with the ultimate receiver of the SOAP request 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 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