Share via


ObjectWithSite Class

Definition

Provides a simplified way to support communication between an object and its site in the container.

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
Inheritance
ObjectWithSite
Derived
Implements

Constructors

ObjectWithSite()

Class constructor. Initializes a new instance of the ObjectWithSite class.

ObjectWithSite(Object)

Class constructor. Initializes a new instance of the ObjectWithSite class with a specified site object.

Properties

Site

Retrieves or sets the object site.

Methods

OnSiteChanged(EventArgs)

Raises the SiteChanged event.

Events

SiteChanged

Event that is raised when the Site property is changed.

Explicit Interface Implementations

IObjectWithSite.GetSite(Guid, IntPtr)

Retrieves the last site set using the IObjectWithSite.SetSite(Object) method. In cases where there is no known site, the object returns an exception.

IObjectWithSite.SetSite(Object)

Provides the site's pointer to the site object.

Applies to