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
'宣言
Function QueryPersistenceInterface ( _
ByRef riidPersist As Guid _
) As Integer
'使用
Dim instance As IActiveDesigner
Dim riidPersist As Guid
Dim returnValue As Integer
returnValue = instance.QueryPersistenceInterface(riidPersist)
int QueryPersistenceInterface(
ref Guid riidPersist
)
int QueryPersistenceInterface(
[InAttribute] Guid% riidPersist
)
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.