IVsPersistSolutionOpts.WriteUserOptions(IStream, String) IVsPersistSolutionOpts.WriteUserOptions(IStream, String) IVsPersistSolutionOpts.WriteUserOptions(IStream, String) IVsPersistSolutionOpts.WriteUserOptions(IStream, String) IVsPersistSolutionOpts.WriteUserOptions(IStream, String) IVsPersistSolutionOpts.WriteUserOptions(IStream, String) Method

Definition

Writes user options for a given solution.

public:
 int WriteUserOptions(Microsoft::VisualStudio::OLE::Interop::IStream ^ pOptionsStream, System::String ^ pszKey);
public:
 int WriteUserOptions(Microsoft::VisualStudio::OLE::Interop::IStream ^ pOptionsStream, Platform::String ^ pszKey);
int WriteUserOptions(Microsoft::VisualStudio::OLE::Interop::IStream const & pOptionsStream, std::wstring const & pszKey);
public int WriteUserOptions (Microsoft.VisualStudio.OLE.Interop.IStream pOptionsStream, string pszKey);
abstract member WriteUserOptions : Microsoft.VisualStudio.OLE.Interop.IStream * string -> int
Public Function WriteUserOptions (pOptionsStream As IStream, pszKey As String) As Integer

Parameters

pOptionsStream
IStream IStream IStream IStream IStream IStream

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

pszKey
String String String String String String

[in] Name of the stream, as provided by the VSPackage by means of the method SavePackageUserOpts(IVsPersistSolutionOpts, String).

Returns

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

Remarks

COM Signature

From vsshell.idl:

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

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

Applies to