The GetContextHandle method, in Configuration Manager, stores context objects on the server.

The following syntax is simplified from Managed Object Format (MOF) code and is intended to show the definition of the method.

SInt32 GetContextHandle(
	String ContextHandle



Data type: StringQualifiers: [out]Context handle that identifies the cached context object on the server.

Return Values

An SInt32 data type that indicates 0 for success or non-zero for failure.


Use this method to replace the contents of your context object with the object indicated by the retrieved context handle. Storing context object data on the server saves network bandwidth for client applications that repeatedly call the SMS Provider using a large number of context qualifiers or a large amount of qualifier data.

For a complete description of the steps required to use this optimization technique, see the ContextHandle qualifier in Configuration Manager Context Qualifiers.


Runtime Requirements

Development Requirements

See Also

Send comments about this topic to Microsoft.