WriteContext

Use the WriteContext function to add or replace an entry in a TI Context array.

Syntax

  
HRESULT WriteContext (  

Parameters

bstrContextEntryName
This string parameter contains the name under which the TI Context entry will be stored and accessed. Some context entry names are predefined by Microsoft. You are free to define your own (although there is no way to deal with such in the COM+ application).

varContextEntryValue
This VARIANT parameter contains the value to be stored for the context entry identified by bstrContextEntryName.

prgContextArray
This SAFEARRAY parameter contains the TI Context entries that are passed to and returned from COM+ objects.

Return Codes

S_OK
The method call completed successfully.

E_INVALIDARG
One or more of the parameters passed are invalid.

E_FAIL
An internal processing error occurred.

See Also

ClearAllContext
ClosePersistentConnection
CountContext
DeleteContext
GetConnectionInfo
QueryContextInfo
ReadContext
UpdateContextInfo
Persistent Connections