IVsSolutionPersistence.SavePackageSolutionProps(Int32, IVsHierarchy, IVsPersistSolutionProps, String) Método
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Grava Propriedades no arquivo Solution. 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
Parâmetros
- fPreLoad
- Int32
[in] true Se as propriedades da solução forem pré-carregadas previamente.
- pHierarchy
- IVsHierarchy
no Ponteiro para a IVsHierarchy interface. Um null valor indica que a seção global do arquivo de solução deve ser salva.
no Ponteiro para a IVsPersistSolutionProps interface.
- pszKey
- String
no Nome da seção do arquivo de solução (o recipiente de propriedades) para o qual as propriedades devem ser gravadas.
Retornos
Se o método for bem-sucedido, retornará S_OK. Se falhar, retornará um código de erro.
Comentários
Assinatura COM
De VSShell. idl:
HRESULT IVsSolutionPersistence::SavePackageSolutionProps(
[in] BOOL fPreLoad,
[in] IVsHierarchy *pHierarchy,
[in] IVsPersistSolutionProps *pPSP,
[in] LPCOLESTR pszKey
);
Use este método para obter o nome do recipiente de propriedades a ser usado com WriteSolutionProps