次の方法で共有


IOleObject::Unadvise (Windows Embedded CE 6.0)

1/6/2010

Thismethod deletes a previously established advisory connection.

Syntax

HRESULT Unadvise( 
  DWORD dwConnection
);

Parameters

Return Value

If the advisory connection deleted, the return value is S_OK.

If the dwConnection parameter does not represent a valid advisory connection, the return value is OLE_E_NOCONNECTION.

Remarks

IOleAdviseHolder::Unadvise is intended to be used to implement IOleObject::Unadvise to delete an advisory connection.

In general, you would use the OLE advise holder having obtained a pointer through a call to CreateOleAdviseHolder.

Usually, containers call this method at shutdown or when an object is deleted. In certain cases, containers could call this method on objects that are running but not visible, as a way of reducing the overhead of maintaining multiple advisory connections.

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

Header Oleidl.h, oleidl.idl
Library oleaut32.lib, uuid.lib
Windows Embedded CE Windows CE 2.0 and later

See Also

Reference

IOleObject
CreateOleAdviseHolder
IOleAdviseHolder::Advise

Concepts

Determining Supported COM APIs