Returns whether a context is used by a specified object.
Returns true if the object uses the named context, or returns false if it does not.