共用方式為


Context::GetId Method

Returns an identifier for the context that is unique within the scheduler to which the context belongs.

virtual unsigned int GetId() const =0;

Return Value

An identifier for the context that is unique within the scheduler to which the context belongs.

Requirements

Header: concrt.h

Namespace: concurrency

See Also

Reference

Context Class