IPersistStreamInitImpl Class

此选件类实现 IUnknown 并提供 IPersistStreamInit 接口的默认实现。

重要

此选件类及其成员不能在 Windows 运行时执行的应用程序。

template< 
class T  
> 
class ATL_NO_VTABLE IPersistStreamInitImpl : 
public IPersistStreamInit

参数

  • T
    您的选件类,从派生 IPersistStreamInitImpl

成员

公共方法

名称

说明

IPersistStreamInitImpl::GetClassID

检索对象的CLSID。

IPersistStreamInitImpl::GetSizeMax

检索必需的流的大小保存对象的数据。 ATL实现返回 E_NOTIMPL

IPersistStreamInitImpl::InitNew

初始化新创建的对象。

IPersistStreamInitImpl::IsDirty

检查对象的数据是否已更改,则它上次保存了。

IPersistStreamInitImpl::Load

从指定的流填充对象的属性。

IPersistStreamInitImpl::Save

保存对象的属性设置为指定的流。

备注

IPersistStreamInit 接口允许客户端请求您的对象加载和保存其持久性数据与单个流。 选件类 IPersistStreamInitImpl 提供此接口的默认实现并将信息发送实现 IUnknown 到转储计算机进行编译。

相关文章   ATL教程创建ATL项目

继承层次结构

IPersistStreamInit

IPersistStreamInitImpl

要求

Header: atlcom.h

请参见

参考

Storages and Streams

其他资源

ATL Class Overview