Aracılığıyla paylaş


IVsSolution.CloseSolutionElement Yöntem (UInt32, IVsHierarchy, UInt32)

 

Program aracılığıyla bir belge, proje veya çözümün tamamı kapatır.

Ad Alanı:   Microsoft.VisualStudio.Shell.Interop
Derleme:  Microsoft.VisualStudio.Shell.Interop (Microsoft.VisualStudio.Shell.Interop.dll içinde)

Sözdizimi

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

Parametreler

  • grfCloseOpts
    Type: System.UInt32

    [in] Çözüm (.sln) dosyası için Seçenekleri'ni kapatın. Bir listesi için grfCloseOpts değerler, bakın __VSSLNCLOSEOPTIONS.

  • docCookie
    Type: System.UInt32

    [in] Bir belge kapatıldı. Bu değer çalışan Belge tablosundan çağrılarak döndürülür GetDocumentInfo.

Dönüş Değeri

Type: System.Int32

Yöntem başarılı olursa, döndürür S_OK. Başarısız olursa, bir hata kodu döndürür.

Notlar

COM imza

Vsshell.idl:

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

Çözümün tamamı kapatmak için çağrı CloseSolutionElement(grfCloseOpts, null, null). Tek bir projeyi kapatmak için çağrı CloseSolutionElement(grfCloseOpts, phier, null). Tek bir belgeye kapatmak için çağrı CloseSolutionElement(grfCloseOpts, null, docCookie).

Ayrıca bkz.

IVsSolution Arabirim
Microsoft.VisualStudio.Shell.Interop Ad Alanı

Başa dön