Sdílet prostřednictvím


IVsSolution.CloseSolutionElement – metoda (UInt32, IVsHierarchy, UInt32)

 

Zavře programovém dokumentu, projektu nebo celého řešení.

Obor názvů:   Microsoft.VisualStudio.Shell.Interop
Sestavení:  Microsoft.VisualStudio.Shell.Interop (v Microsoft.VisualStudio.Shell.Interop.dll)

Syntaxe

int CloseSolutionElement(
    uint grfCloseOpts,
    IVsHierarchy pHier,
    uint docCookie
)
int CloseSolutionElement(
    unsigned int grfCloseOpts,
    IVsHierarchy^ pHier,
    unsigned int docCookie
)
abstract CloseSolutionElement : 
        grfCloseOpts:uint32 *
        pHier:IVsHierarchy *
        docCookie:uint32 -> int
Function CloseSolutionElement (
    grfCloseOpts As UInteger,
    pHier As IVsHierarchy,
    docCookie As UInteger
) As Integer

Parametry

  • grfCloseOpts
    [v] Zavřete okno Možnosti pro soubor řešení (.sln).Seznam grfCloseOpts hodnoty, viz __VSSLNCLOSEOPTIONS.
  • pHier
    [v] Ukazatel IVsHierarchy rozhraní dokument zavřete.
  • docCookie
    [v] Dokument, který byl uzavřen.Vrácení této hodnoty z tabulky spuštěných dokumentu, voláním GetDocumentInfo.

Vrácená hodnota

Type: System.Int32

Pokud metoda uspěje, vrací S_OK.Pokud se nezdaří, vrátí kód chyby.

Poznámky

Podpis COM

Z vsshell.idl:

HRESULT IVsSolution::CloseSolutionElement(
   [in] VSSLNCLOSEOPTIONS grfCloseOpts,
   [in] IVsHierarchy *pHier,
   [in] VSCOOKIE docCookie
);

To close the entire solution, call CloseSolutionElement(grfCloseOpts, null, null).To close a single project, call CloseSolutionElement(grfCloseOpts, phier, null).To close a single document, call CloseSolutionElement(grfCloseOpts, null, docCookie).

Viz také

IVsSolution – rozhraní
Microsoft.VisualStudio.Shell.Interop – obor názvů

Zpátky na začátek