COM 및 .Net(Windows) COMPersistHelper::__construct
(PHP 5, PHP 7, PHP 8)
COMPersistHelper::__construct — Construct a COMPersistHelper object
설명
public COMPersistHelper::__construct(?variant $variant
= null
)
일반적으로 variant
과 연결된 지속성 도우미 개체를 생성합니다.
매개변수
variant
- IDispatch를 구현하는 COM 개체입니다. COMPersistHelper의 메서드를 성공적으로 호출할 수 있으려면 개체가 IPersistFile, IPersistStream 및/또는 IPersistStreamInit를 구현해야 합니다.
null
을variant
으로 전달하는 것은 COMPersistHelper::LoadFromStream()을 호출하여 스트림에서 개체를 로드해야 하는 경우에만 유용합니다.