IVsPersistSolutionProps.QuerySaveSolutionProps 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建用于存储解决方案属性的属性包。
public:
int QuerySaveSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, cli::array <Microsoft::VisualStudio::Shell::Interop::VSQUERYSAVESLNPROPS> ^ pqsspSave);
public:
int QuerySaveSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYSAVESLNPROPS> ^ pqsspSave);
int QuerySaveSolutionProps(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, std::Array <Microsoft::VisualStudio::Shell::Interop::VSQUERYSAVESLNPROPS> const & pqsspSave);
public int QuerySaveSolutionProps (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, Microsoft.VisualStudio.Shell.Interop.VSQUERYSAVESLNPROPS[] pqsspSave);
abstract member QuerySaveSolutionProps : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.VSQUERYSAVESLNPROPS[] -> int
Public Function QuerySaveSolutionProps (pHierarchy As IVsHierarchy, pqsspSave As VSQUERYSAVESLNPROPS()) As Integer
参数
- pHierarchy
- IVsHierarchy
中指向 IVsHierarchy 的指针。 null 指示解决方案文件的全局部分的 save。
- pqsspSave
- VSQUERYSAVESLNPROPS[]
弄一个指向枚举的指针,该 VSQUERYSAVESLNPROPS 枚举指示解决方案是否具有属性、已更改的属性或没有属性。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell:
HRESULT IVsPersistSolutionProps::QuerySaveSolutionProps(
[in] IVsHierarchy *pHierarchy,
[out] VSQUERYSAVESLNPROPS *pqsspSave
);