Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Saves user options for a given solution.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function SaveUserOptions ( _
pPersistence As IVsSolutionPersistence _
) As Integer
'Usage
Dim instance As IVsPersistSolutionProps
Dim pPersistence As IVsSolutionPersistence
Dim returnValue As Integer
returnValue = instance.SaveUserOptions(pPersistence)
int SaveUserOptions(
IVsSolutionPersistence pPersistence
)
int SaveUserOptions(
[InAttribute] IVsSolutionPersistence^ pPersistence
)
abstract SaveUserOptions :
pPersistence:IVsSolutionPersistence -> int
function SaveUserOptions(
pPersistence : IVsSolutionPersistence
) : int
Parameters
- pPersistence
Type: Microsoft.VisualStudio.Shell.Interop.IVsSolutionPersistence
[in] Pointer to the IVsSolutionPersistence interface on which the VSPackage should call its SavePackageUserOpts method for each stream name it wants to write to the user options file.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsPersistSolutionOpts.SaveUserOptions(IVsSolutionPersistence)
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsPersistSolutionProps::SaveUserOptions(
[in] IVsSolutionPersistence *pPersistence
);
This method calls the SavePackageUserOpts method for each separate stream to be written to the user options file.
.NET Framework Security
- 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.
See Also
Reference
IVsPersistSolutionProps Interface