Share via


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

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

pszKey
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

Implementors of this method are expected to be safe to be accesssed from any thread if its owner is passed to IVsSolutionPersistence on a background thread.

Applies to