Método IVsSolution.OpenSolutionFile (UInt32, String)

 

Publicado: abril de 2016

Abre um arquivo de solução do tipo sln,. dsw ou. vbg.

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

Sintaxe

int OpenSolutionFile(
    uint grfOpenOpts,
    string pszFilename
)
int OpenSolutionFile(
    unsigned int grfOpenOpts,
    String^ pszFilename
)
abstract OpenSolutionFile : 
        grfOpenOpts:uint32 *
        pszFilename:string -> int
Function OpenSolutionFile (
    grfOpenOpts As UInteger,
    pszFilename As String
) As Integer

Parâmetros

  • grfOpenOpts
    [in] Opções para abrir um arquivo de solução.Para obter uma lista de grfOpenOpts valores, consulte __VSSLNOPENOPTIONS.
  • pszFilename
    [in] Ponteiro para o nome do arquivo de solução para abrir.

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 IVsSolution::OpenSolutionFile(
   [in] VSSLNOPENOPTIONS grfOpenOpts,
   [in] LPCOLESTR pszFilename
);

Consulte também

Interface IVsSolution
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo