WebLogic Messaging API Class Library |

# IConnection.ClientID Property

Gets or Sets the client identifier for this connection as a `string`.

This value is either preconfigured by an administrator in a `IConnectionFactory` object, assigned dynamically by the application by calling the `setClientID` method, or is not assigned a value.

ClientID {get; set;}

#### Exceptions

Exception Type | Condition
--- | ---
MessageException | if the JMS provider fails to return the client ID for this connection due to some internal error.
MessageException | if JMS fails to set the client ID for this connection due to some internal error.
InvalidClientIDException | if the JMS client specifies an invalid or duplicate client ID.
IllegalStateException | if the JMS client attempts to set a connection's client ID at the wrong time or when it has been administratively configured.

#### See Also

IConnection Interface | WebLogic.Messaging Namespace