IVsSolutionPersistence.SavePackageUserOpts 方法

写入解决方案文件的用户选项。保存包级别的用户选项对解决方案 .sln 文件的一个或多个名为流。

命名空间:  Microsoft.VisualStudio.Shell.Interop
程序集:  Microsoft.VisualStudio.Shell.Interop(在 Microsoft.VisualStudio.Shell.Interop.dll 中)

语法

声明
Function SavePackageUserOpts ( _
    pPSO As IVsPersistSolutionOpts, _
    pszKey As String _
) As Integer
int SavePackageUserOpts(
    IVsPersistSolutionOpts pPSO,
    string pszKey
)

参数

  • pszKey
    类型:System.String
    [in] 选项将保存流的名称。

返回值

类型:System.Int32
如果方法成功,则返回 S_OK。如果失败,它会返回一个错误代码。

备注

COM 签名

从 vsshell.idl:

HRESULT IVsSolutionPersistence::SavePackageUserOpts(
   [in] IVsPersistSolutionOpts *pPSO,
   [in] LPCOLESTR pszKey
);

.NET Framework 安全性

请参见

参考

IVsSolutionPersistence 接口

Microsoft.VisualStudio.Shell.Interop 命名空间