Bagikan melalui


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

'Declaration
Function SaveRuntimeState ( _
    ByRef riidPersist As Guid, _
    ByRef riidObjStgMed As Guid, _
    pObjStgMed As IntPtr _
) As Integer
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

Microsoft.VisualStudio.Shell.Interop Namespace