PutContext
Sets the value for the given name in the context properties. If there is an existing value present for the entity identified by the name, it is replaced. Context properties include the following constants: account ID, account password, service name, service key, and request ID.
Syntax
public void PutContext(String name, String value)
Parameters
- Name—name with which the specified value is to be associated
- Value—value to be associated with the specified name
Example
message.PutContext(Message.CONTEXT_ACCOUNT_ID, "user1");