Collapse All Expand All

.NET Framework Class Library
EMSDTCConnectionFactory Class See Also

[TIBCO.EMS .NET client library 6.1 documentation]

Create a EMSDTCConnection

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

# Syntax

    public EMSDTCConnection CreateEMSDTCConnection(
    	string userName,
    	string password
    )

    Public Function CreateEMSDTCConnection ( _
    	userName As String, _
    	password As String _
    ) As EMSDTCConnection

    public:
    EMSDTCConnection^ CreateEMSDTCConnection(
    	String^ userName,
    	String^ password
    )

#### Parameters

userName
  Type: System..::.String

password
  Type: System..::.String

#### Return Value

The newly created EMSDTCConnection.

# Remarks

The connection object presents a default user identity. If the server configuration permits that user, then the call succeeds. NOTE: Before creating an EMSDTCConnection, the clientId has to be set for the connection factory or else an exception is thrown to indicate the absence of clientId.

# Exceptions

Exception | Condition
--- | ---
TIBCO.EMS..::.EMSException | If the cilentID is null or some other internal error

# See Also

EMSDTCConnectionFactory Class
CreateEMSDTCConnection Overload
TIBCO.EMS Namespace