IAdviseSink 인터페이스

정의

인터페이스의 IAdviseSink 관리되는 정의를 제공합니다.

public interface class IAdviseSink
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IAdviseSink
[System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
[System.Runtime.InteropServices.Guid("0000010F-0000-0000-C000-000000000046")]
public interface IAdviseSink
public interface IAdviseSink
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IAdviseSink = interface
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
[<System.Runtime.InteropServices.Guid("0000010F-0000-0000-C000-000000000046")>]
type IAdviseSink = interface
type IAdviseSink = interface
Public Interface IAdviseSink
특성

설명

IAdviseSink 인터페이스를 사용하면 컨테이너 및 기타 개체가 데이터 변경에 대한 알림을 받고 관심 있는 개체에서 발생하는 변경 내용 및 복합 문서 변경 내용을 볼 수 있습니다.

자세한 내용은 IAdviseSink 인터페이스를 참조하세요.

공용 언어 런타임은 네이티브 코드의 COM 메서드가 HRESULT를 반환할 때 예외를 throw합니다. 자세한 내용은 방법: HRESULT 및 예외 매핑을 참조하세요.

메서드

Name Description
OnClose()

등록된 모든 권고 싱크에 개체가 실행 중 상태에서 로드된 상태로 변경되었음을 알 수 있습니다. 이 메서드는 서버에서 호출됩니다.

OnDataChange(FORMATETC, STGMEDIUM)

현재 등록된 모든 데이터 개체에 개체의 데이터가 변경되었음을 알 수 있습니다.

OnRename(IMoniker)

등록된 모든 권고 싱크에 개체의 이름이 변경되었음을 알 수 있습니다. 이 메서드는 서버에서 호출됩니다.

OnSave()

등록된 모든 권고 싱크에 개체가 저장되었음을 알 수 있습니다. 이 메서드는 서버에서 호출됩니다.

OnViewChange(Int32, Int32)

개체의 등록된 권고 싱크에 해당 보기가 변경되었음을 알 수 있습니다. 이 메서드는 서버에서 호출됩니다.

적용 대상