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

Name Description
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

Name Description
Site

Retrieves or sets the object site.

Methods

Name Description
OnSiteChanged(EventArgs)

Raises the SiteChanged event.

Events

Name Description
SiteChanged

Event that is raised when the Site property is changed.

Explicit Interface Implementations

Name Description
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