Php/docs/compersisthelper.construct

来自菜鸟教程
跳转至:导航、​搜索

COMPersistHelper::__construct

(PHP 5, PHP 7)

COMPersistHelper::__constructConstruct a COMPersistHelper object


说明

public COMPersistHelper::__construct ([ variant|null $variant ] )

Constructs a persistence helper object, usually associated with a variant.


参数

variant
A COM object which implements IDispatch. To be able to successfully call any of COMPersistHelper's methods, the object has to implement IPersistFile, IPersistStream and/or IPersistStreamInit. Passing null as variant is only useful if the object is to be loaded from a stream by calling COMPersistHelper::LoadFromStream().