IVsSolutionPersistence.SavePackageSolutionProps Yöntem

Tanım

Çözüm. sln dosyasına Özellikler yazar.

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

Parametreler

fPreLoad
Int32

[in] true çözüm özellikleri önceden yüklenecedir.

pHierarchy
IVsHierarchy

'ndaki IVsHierarchy Arabirim işaretçisi. nullDeğer, çözüm dosyasının genel bölümünün kaydedileceği anlamına gelir.

ppSP
IVsPersistSolutionProps

'ndaki IVsPersistSolutionProps Arabirim işaretçisi.

pszKey
String

'ndaki Özelliklerin yazılması gereken çözüm dosyası bölümünün (özellik paketi) adı.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

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

İle kullanılacak özellik paketi adını almak için bu yöntemi kullanın WriteSolutionProps

Şunlara uygulanır