Export (0) Print
Expand All

IVsPersistSolutionProps.WriteUserOptions Method

Writes user options for a given solution.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int WriteUserOptions (
	[InAttribute] IStream pOptionsStream,
	[InAttribute] string pszKey
)
int WriteUserOptions (
	/** @attribute InAttribute() */ IStream pOptionsStream, 
	/** @attribute InAttribute() */ String pszKey
)
function WriteUserOptions (
	pOptionsStream : IStream, 
	pszKey : String
) : int

Parameters

pOptionsStream

[in] Pointer to the IStream interface to which the VSPackage should write the user-specific options.

pszKey

[in] Name of the stream, as provided by the VSPackage by means of the SavePackageUserOpts

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsPersistSolutionProps::WriteUserOptions(
   [in] IStream *pOptionsStream,
   [in] LPCOLESTR pszKey
);

This method is invoked by the environment each time a VSPackage invokes the method SavePackageUserOpts.

Community Additions

ADD
Show:
© 2015 Microsoft