다음을 통해 공유


IActiveDesigner.SaveRuntimeState Method

Saves the runtime state of the designer.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

‘선언
Function SaveRuntimeState ( _
    ByRef riidPersist As Guid, _
    ByRef riidObjStgMed As Guid, _
    pObjStgMed As IntPtr _
) As Integer
‘사용 방법
Dim instance As IActiveDesigner
Dim riidPersist As Guid
Dim riidObjStgMed As Guid
Dim pObjStgMed As IntPtr
Dim returnValue As Integer

returnValue = instance.SaveRuntimeState(riidPersist, _
    riidObjStgMed, pObjStgMed)
int SaveRuntimeState(
    ref Guid riidPersist,
    ref Guid riidObjStgMed,
    IntPtr pObjStgMed
)
int SaveRuntimeState(
    [InAttribute] Guid% riidPersist, 
    [InAttribute] Guid% riidObjStgMed, 
    [InAttribute] IntPtr pObjStgMed
)
abstract SaveRuntimeState : 
        riidPersist:Guid byref * 
        riidObjStgMed:Guid byref * 
        pObjStgMed:IntPtr -> int 
function SaveRuntimeState(
    riidPersist : Guid, 
    riidObjStgMed : Guid, 
    pObjStgMed : IntPtr
) : int

Parameters

  • riidPersist
    Type: System.Guid%
    [in] The IID of the persistence interface to use.
  • riidObjStgMed
    Type: System.Guid%
    [in] The IID of the interface responsible for the storage.
  • pObjStgMed
    Type: System.IntPtr
    [in] Pointer to the storage managed by the interface riidObjStgMed.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From designer.idl:

HRESULT IActiveDesigner::SaveRuntimeState(
   [in] REFIID riidPersist, 
   [in] REFIID riidObjStgMed, 
   [in] void * pObjStgMed
);

.NET Framework Security

See Also

Reference

IActiveDesigner Interface

IActiveDesigner Members

Microsoft.VisualStudio.Shell.Interop Namespace