IObjectWithSiteImpl::SetChildSite

提供对象与网站的 IUnknown 指针。

HRESULT SetChildSite(
   IUnknown* pUnkSite 
);

参数

  • pUnkSite
    [out]一个指向管理该对象的站点的 IUnknown 接口指针的指针。如果NULL,对象应对任何现有网站,此时对象的 IUnknown::Release 不再知道其站点。

返回值

返回 S_OK。

要求

Header: atlcom.h

请参见

参考

IObjectWithSiteImpl选件类

IObjectWithSiteImpl::GetSite