IExecutionContext::GetId Method
Collapse the table of content
Expand the table of content

IExecutionContext::GetId Method


Returns a unique identifier for the execution context.

virtual unsigned int GetId() const =0;

A unique integer identifier.

You should use the method GetExecutionContextId to obtain a unique identifier for the object that implements the IExecutionContext interface, before you use the interface as a parameter to methods supplied by the Resource Manager. You are expected to return the same identifier when the GetId function is invoked.

An identifier obtained from a different source could result in undefined behavior.


Header: concrtrm.h

Namespace: concurrency

© 2016 Microsoft