GetContext

Gets the value by the name in the context properties. Context properties include the following constants: account ID, account password, service name, service key, and request ID.

Syntax

public String GetContext(String name) 

Parameters

None.

Results

Returns the value associated with the name in the "context" properties. If the name does not exist, the method returns NULL.

Example

String value = message.GetContext(Message.CONTEXT_ACCOUNT_ID);