[TIBCO.EMS .NET client library 5.1 documentation]

Creates a Session object.

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public virtual Session CreateSession(
	bool transacted,
	SessionMode acknowledgeMode
)
Public Overridable Function CreateSession ( _
	transacted As Boolean, _
	acknowledgeMode As SessionMode _
) As Session
public:
virtual Session^ CreateSession(
	bool transacted, 
	SessionMode acknowledgeMode
)

Parameters

transacted
Type: System..::.Boolean
Indicates whether the session is transacted.

When true, the new session has transaction semantics.

When false, it has non-transaction semantics.

acknowledgeMode
Type: TIBCO.EMS..::.SessionMode

Indicates whether and how the consumer is to acknowledge received messages.

Legal values are listed under SessionMode.

This parameter is ignored if the session is transacted.

Return Value

A newly created session.

Remarks

The new session uses the connection for all server communications.

See Also