ObjectWithSite 類別

定義

提供簡化的方式來支持物件與其在容器中的月臺之間的通訊。

public ref class ObjectWithSite : Microsoft::VisualStudio::OLE::Interop::IObjectWithSite
public class ObjectWithSite : Microsoft.VisualStudio.OLE.Interop.IObjectWithSite
type ObjectWithSite = class
    interface IObjectWithSite
Public Class ObjectWithSite
Implements IObjectWithSite
繼承
ObjectWithSite
衍生
實作

建構函式

ObjectWithSite()

類別建構函式。 初始化 ObjectWithSite 類別的新執行個體。

ObjectWithSite(Object)

類別建構函式。 使用指定的月台物件, ObjectWithSite 初始化 類別的新實例。

屬性

Site

擷取或設定對象網站。

方法

OnSiteChanged(EventArgs)

引發 SiteChanged 事件。

事件

SiteChanged

變更 Site 屬性時所引發的事件。

明確介面實作

IObjectWithSite.GetSite(Guid, IntPtr)

使用 IObjectWithSite.SetSite(Object) 方法擷取最後一個網站集。 如果沒有已知的網站,物件會傳回例外狀況。

IObjectWithSite.SetSite(Object)

提供網站物件的月臺指標。

適用於