Bagikan melalui


IActiveDesigner.QueryPersistenceInterface Method

Tests whether or not the designer supports a given persistence interface such as IPersistStream.

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

Syntax

'Declaration
Function QueryPersistenceInterface ( _
    ByRef riidPersist As Guid _
) As Integer
int QueryPersistenceInterface(
    ref Guid riidPersist
)
int QueryPersistenceInterface(
    [InAttribute] Guid% riidPersist
)
abstract QueryPersistenceInterface : 
        riidPersist:Guid byref -> int 
function QueryPersistenceInterface(
    riidPersist : Guid
) : int

Parameters

  • riidPersist
    Type: System.Guid%
    [in] The IID of the persistence interface.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Success indicates that the designer supports the persistence interface.

Remarks

COM Signature

From designer.idl:

HRESULT IActiveDesigner::QueryPersistenceInterface(
   [in] REFIID riidPersist
);

.NET Framework Security

See Also

Reference

IActiveDesigner Interface

Microsoft.VisualStudio.Shell.Interop Namespace