IOleCacheControl::OnStop method

Notifies the cache that it should terminate any existing advise sinks. No indication is given as to whether a connection actually existed.

Syntax


HRESULT OnStop();

Parameters

This method has no parameters.

Return value

This method returns S_OK on success. Other possible return values include the following.

Return codeDescription
E_UNEXPECTED

An unexpected error has occurred.

E_OUTOFMEMORY

Insufficient memory is available for this operation.

 

Remarks

The data advisory connection between the running object and the cache is destroyed as part of calling OnStop.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleCacheControl is defined as 00000129-0000-0000-C000-000000000046

See also

IOleCacheControl
IOleCacheControl::OnRun

 

 

Show: