Solclient
ISessionModifyProperty Method |
Allows certain properties of a session to be modified after the session has been created.
Currently, only the following session properties can be modified:
ClientDescription (Deprecated - See Note below)
ClientName (Deprecated - See Note below)
Host (may only be modified when session is disconnected)
Port (may only be modified when session is disconnected)
Note: Applications shall use ModifyClientInfo(SessionPropertiesPROPERTY, Object, Int32, Object) to modify the following session properties:
ClientDescription
ClientName
ClientDescription (Deprecated - See Note below)
ClientName (Deprecated - See Note below)
Host (may only be modified when session is disconnected)
Port (may only be modified when session is disconnected)
Note: Applications shall use ModifyClientInfo(SessionPropertiesPROPERTY, Object, Int32, Object) to modify the following session properties:
ClientDescription
ClientName
Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
ReturnCode ModifyProperty( SessionPropertiesPROPERTY sessionProperty, Object value )
Function ModifyProperty ( sessionProperty As SessionPropertiesPROPERTY, value As Object ) As ReturnCode
ReturnCode ModifyProperty( SessionPropertiesPROPERTY sessionProperty, Object^ value )
Parameters
- sessionProperty
- Type: SolaceSystems.Solclient.MessagingSessionPropertiesPROPERTY
The property to modify. - value
- Type: SystemObject
The new value for the property.
Return Value
Type: ReturnCodeThrows OperationErrorException if failed. Otherwise it returns SOLCLIENT_OK, or SOLCLIENT_WOULD_BLOCK, if the message cannot be accepted by the API immediately.
Exceptions
Exception | Condition |
---|---|
OperationErrorException | Thrown when the operation fails. Possible sub-codes: |
FatalErrorException | Thrown when un-recoverable error occurs. |
ObjectDisposedException | Thrown when the session is already disposed (terminal state). |
ArgumentNullException | Thrown if any of the required parameters is null. |
See Also