﻿<?xml version="1.0" encoding="utf-8"?><Type Name="IAdviseSink" FullName="System.Runtime.InteropServices.ComTypes.IAdviseSink"><TypeSignature Language="C#" Value="public interface IAdviseSink" /><TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IAdviseSink" /><AssemblyInfo><AssemblyName>System</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Interfaces /><Attributes><Attribute><AttributeName>System.Runtime.InteropServices.Guid("0000010F-0000-0000-C000-000000000046")</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The IAdviseSink interface enables containers and other objects to receive notifications of data changes, and view changes and compound-document changes occurring in objects of interest. </para><para>For more information about the IAdviseSink interface, see the MSDN Library.</para><para>The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see <format type="text/html"><a href="610b364b-2761-429d-9c4a-afbc3e66f1b9">How to: Map HRESULTs and Exceptions</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides a managed definition of the IAdviseSink interface.</para></summary></Docs><Members><Member MemberName="OnClose"><MemberSignature Language="C#" Value="public void OnClose ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnClose() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>An <see cref="M:System.Runtime.InteropServices.ComTypes.IAdviseSink.OnClose" /> notification indicates that an object is making the transition from the running state to the loaded state, so its container can take appropriate measures to ensure orderly shutdown. For example, an object handler must release its pointer to the object.</para><para>For more information about IAdviseSink::OnClose, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Notifies all registered advisory sinks that the object has changed from the running state to the loaded state.  This method is called by a server.</para></summary></Docs></Member><Member MemberName="OnDataChange"><MemberSignature Language="C#" Value="public void OnDataChange (ref System.Runtime.InteropServices.ComTypes.FORMATETC format, ref System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnDataChange(valuetype System.Runtime.InteropServices.ComTypes.FORMATETC format, valuetype System.Runtime.InteropServices.ComTypes.STGMEDIUM stgmedium) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="format" Type="System.Runtime.InteropServices.ComTypes.FORMATETC&amp;" RefType="ref" /><Parameter Name="stgmedium" Type="System.Runtime.InteropServices.ComTypes.STGMEDIUM&amp;" RefType="ref" /></Parameters><Docs><param name="format">To be added.</param><param name="stgmedium">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="OnRename"><MemberSignature Language="C#" Value="public void OnRename (System.Runtime.InteropServices.ComTypes.IMoniker moniker);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnRename(class System.Runtime.InteropServices.ComTypes.IMoniker moniker) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="moniker" Type="System.Runtime.InteropServices.ComTypes.IMoniker" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For more information about IAdviseSink::IMoniker, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Notifies all registered advisory sinks that the object has been renamed. This method is called by a server.</para></summary><param name="moniker"><attribution license="cc4" from="Microsoft" modified="false" />A pointer to the IMoniker interface on the new full moniker of the object.</param></Docs></Member><Member MemberName="OnSave"><MemberSignature Language="C#" Value="public void OnSave ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnSave() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For more information about IAdviseSink::OnSave, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Notifies all registered advisory sinks that the object has been saved. This method is called by a server.</para></summary></Docs></Member><Member MemberName="OnViewChange"><MemberSignature Language="C#" Value="public void OnViewChange (int aspect, int index);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnViewChange(int32 aspect, int32 index) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="aspect" Type="System.Int32" /><Parameter Name="index" Type="System.Int32" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>For more information about IAdviseSink::OnViewChange, see the MSDN Library.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Notifies an object's registered advisory sinks that its view has changed. This method is called by a server.</para></summary><param name="aspect"><attribution license="cc4" from="Microsoft" modified="false" />The aspect, or view, of the object. Contains a value taken from the <see cref="T:System.Runtime.InteropServices.ComTypes.DVASPECT" /> enumeration.</param><param name="index"><attribution license="cc4" from="Microsoft" modified="false" />The portion of the view that has changed. Currently, only -1 is valid.</param></Docs></Member></Members></Type>