Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Content Extensions
ActiveX Controls
Reference
Interfaces
IObjectWithSite
IObjectWithSite Interface

Provides simple objects with a lightweight siting mechanism (lighter than IOleObject).

IObjectWithSite Members

GetSite Gets the last site set with IObjectWithSite::SetSite. If there is no known site, the object returns a failure code.
SetSite Provides the site's IUnknown pointer to the object.

Remarks

Often, an object must communicate directly with a container site that is managing the object. Outside of IOleObject::SetClientSite, there is no generic means through which an object becomes aware of its site. The IObjectWithSite interface provides a siting mechanism. This interface should only be used when IOleObject is not already in use. By using IObjectWithSite, a container can pass the IUnknown pointer of its site to the object through SetSite. Callers can also get the latest site passed to SetSite by using GetSite.

Interface Information

Stock Implementation None
Custom ImplementationYes
Inherits fromIUnknown
Header and IDL filesOcidl.h, Ocidl.idl
Minimum availabilityInternet Explorer 4.0
Minimum operating systems Windows 95, Windows NT 4.0
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker