IVsSolutionPersistence.SavePackageSolutionProps Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Çö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.
'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
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