Método IVsSolutionPersistence.SavePackageSolutionProps (Int32, IVsHierarchy, IVsPersistSolutionProps, String)

 

Grava o arquivo. sln da solução propriedades.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)

Sintaxe

int SavePackageSolutionProps(
    int fPreLoad,
    IVsHierarchy pHierarchy,
    IVsPersistSolutionProps ppSP,
    string pszKey
)
int SavePackageSolutionProps(
    int fPreLoad,
    IVsHierarchy^ pHierarchy,
    IVsPersistSolutionProps^ ppSP,
    String^ pszKey
)
abstract SavePackageSolutionProps : 
        fPreLoad:int *
        pHierarchy:IVsHierarchy *
        ppSP:IVsPersistSolutionProps *
        pszKey:string -> int
Function SavePackageSolutionProps (
    fPreLoad As Integer,
    pHierarchy As IVsHierarchy,
    ppSP As IVsPersistSolutionProps,
    pszKey As String
) As Integer

Parâmetros

  • fPreLoad
    [in] true se as propriedades de solução são a serem pré-carregados.
  • pHierarchy
    [in] Ponteiro para o IVsHierarchy interface.A null valor indica a seção global do arquivo de solução está a ser salvo.
  • pszKey
    [in] Nome da seção de arquivo de solução (conjunto de propriedades) para o qual as propriedades devem ser gravadas.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

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 conjunto de propriedade para ser usado comWriteSolutionProps

Consulte também

Interface IVsSolutionPersistence
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo