IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) Метод

Определение

Записывает свойства в SLN-файл решения.

public:
 int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps ^ ppSP, System::String ^ pszKey);
public:
 int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps ^ ppSP, Platform::String ^ pszKey);
int SavePackageSolutionProps(int fPreLoad, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, Microsoft::VisualStudio::Shell::Interop::IVsPersistSolutionProps const & ppSP, std::wstring const & pszKey);
public int SavePackageSolutionProps (int fPreLoad, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionProps ppSP, string pszKey);
abstract member SavePackageSolutionProps : int * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * Microsoft.VisualStudio.Shell.Interop.IVsPersistSolutionProps * string -> int
Public Function SavePackageSolutionProps (fPreLoad As Integer, pHierarchy As IVsHierarchy, ppSP As IVsPersistSolutionProps, pszKey As String) As Integer

Параметры

fPreLoad
Int32

[in] Имеет значение true, если свойства решения быть предварительно загружены.

pHierarchy
IVsHierarchy

[in] Указатель на интерфейс IVsHierarchy. Значение null указывает, что глобальный раздел файла решения должны быть сохранены.

ppSP
IVsPersistSolutionProps

[in] Указатель на интерфейс IVsPersistSolutionProps.

pszKey
String

[in] Имя раздела файла решения (контейнер свойств), свойства которого должны быть записаны.

Возвращаемое значение

Int32

Если метод завершается успешно, возвращает значение S_OK. В противном случае функция возвращает код ошибки.

Комментарии

Подпись COM

Из всшелл. IDL:

HRESULT IVsSolutionPersistence::SavePackageSolutionProps(  
   [in] BOOL fPreLoad,  
   [in] IVsHierarchy *pHierarchy,  
   [in] IVsPersistSolutionProps *pPSP,  
   [in] LPCOLESTR pszKey  
);  

Используйте этот метод, чтобы получить имя контейнера свойств для использования с WriteSolutionProps

Применяется к