Aracılığıyla paylaş


ISelectionContainer.CountObjects Yöntem (UInt32, UInt32)

 

Geçerli seçim içinde bulunan nesnelerin sayısı toplam sayısını veya nesneleri sayısını döndürür.

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

Sözdizimi

int CountObjects(
    uint dwFlags,
    out uint pc
)
int CountObjects(
    unsigned int dwFlags,
    [OutAttribute] unsigned int% pc
)
abstract CountObjects : 
        dwFlags:uint32 *
        pc:uint32 byref -> int
Function CountObjects (
    dwFlags As UInteger,
    <OutAttribute> ByRef pc As UInteger
) As Integer

Parametreler

  • dwFlags
    Type: System.UInt32

    [in] Döndürülecek sayısı türünü belirten bayrak. Varsa ayarlamak GETOBJS_ALL, CountObjects toplam nesne sayısı döndürür. Varsa ayarlamak GETOBJS_SELECTED, CountObjects Seçili nesnelerin sayısını döndürür.

  • pc
    Type: System.UInt32

    [out] İstenen nesne sayısı işaretçisi.

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

Designer.idl:

HRESULT ISelectionContainer::CountObjects(
   [in] DWORD dwFlags,
   [out] ULONG * pc
);

Birçok windows yalnızca tek öğe seçimi destekler; herhangi bir zamanda seçilecek birden çok öğe izin vermez. Tek seçim windows her zaman geri nasıl bağımsız olarak kendi nesne sayısı için bir tane dwFlags ayarlanır.

Ayrıca bkz.

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

Başa dön