ReliableSession Constructores

Definición

Inicializa una nueva instancia de la clase ReliableSession.Initializes a new instance of the ReliableSession class.

Sobrecargas

ReliableSession()

Inicializa una nueva instancia de la clase ReliableSession.Initializes a new instance of the ReliableSession class.

ReliableSession(ReliableSessionBindingElement)

Inicializa una nueva instancia de la clase ReliableSession a partir de un elemento de enlace de la sesión confiable.Initializes a new instance of the ReliableSession class from a reliable session binding element.

ReliableSession()

Inicializa una nueva instancia de la clase ReliableSession.Initializes a new instance of the ReliableSession class.

public:
 ReliableSession();
public ReliableSession ();
Public Sub New ()

Se aplica a

ReliableSession(ReliableSessionBindingElement)

Inicializa una nueva instancia de la clase ReliableSession a partir de un elemento de enlace de la sesión confiable.Initializes a new instance of the ReliableSession class from a reliable session binding element.

public:
 ReliableSession(System::ServiceModel::Channels::ReliableSessionBindingElement ^ reliableSessionBindingElement);
public:
 ReliableSession(System::ServiceModel::Channels::ReliableSessionBindingElement ^ binding);
public ReliableSession (System.ServiceModel.Channels.ReliableSessionBindingElement reliableSessionBindingElement);
public ReliableSession (System.ServiceModel.Channels.ReliableSessionBindingElement binding);
new System.ServiceModel.ReliableSession : System.ServiceModel.Channels.ReliableSessionBindingElement -> System.ServiceModel.ReliableSession
new System.ServiceModel.ReliableSession : System.ServiceModel.Channels.ReliableSessionBindingElement -> System.ServiceModel.ReliableSession
Public Sub New (reliableSessionBindingElement As ReliableSessionBindingElement)
Public Sub New (binding As ReliableSessionBindingElement)

Parámetros

reliableSessionBindingElementbinding
ReliableSessionBindingElement

ReliableSessionBindingElement cuyos valores de la propiedad se utilizan para inicializar la sesión confiable.The ReliableSessionBindingElement whose property values are used to initialize the reliable session.

Excepciones

El valor de reliableSessionBindingElement es null.The reliableSessionBindingElement is null.

Ejemplos

// Create a new reliable session object
ReliableSessionBindingElement bindingElement = new ReliableSessionBindingElement();
ReliableSession reliableSession = new ReliableSession(bindingElement);

// Now you can access property values
Console.WriteLine("Ordered: {0}", reliableSession.Ordered);
Console.WriteLine("InactivityTimeout: {0}", reliableSession.InactivityTimeout);
reliableSession.Ordered = false;
Console.WriteLine("The new value for the Ordered property is: {0}", reliableSession.Ordered);
' Create a new reliable session object
Dim bindingElement As ReliableSessionBindingElement = New ReliableSessionBindingElement()
Dim reliableSession As ReliableSession = New ReliableSession(bindingElement)

' Now you can access property values
Console.WriteLine("Ordered: {0}", reliableSession.Ordered)
Console.WriteLine("InactivityTimeout: {0}", reliableSession.InactivityTimeout)
ReliableSession.Ordered = False
Console.WriteLine("The new value for the Ordered property is: {0}", ReliableSession.Ordered)

Se aplica a