次の方法で共有


PnpObjectCollection.Size プロパティ

定義

重要

Windows.Devices.Enumeration.Pnp 名前空間で型を使用することはお勧めしません。 代わりに、Windows.Devices.Enumeration 名前空間の型は、Windows.Devices.Enumeration.Pnp の機能の最新の、より適切に保守されたスーパーセットを実装します。

PnpObjectType の代わりに、Windows.Devices.Enumeration.DeviceInformationKind 列挙型があり、パラメーターとして Windows.Devices.Enumeration API に渡すことができます。 たとえば、PnpObjectWatcher を作成するときに PnpObjectType を使用する代わりに、DeviceWatcher を作成するときに DeviceInformationKind を使用します。

コレクション内のアイテム数を返します。

public:
 property unsigned int Size { unsigned int get(); };
uint32_t Size();
public uint Size { get; }
var uInt32 = pnpObjectCollection.size;
Public ReadOnly Property Size As UInteger

プロパティ値

UInt32

unsigned int

uint32_t

コレクション内の項目数。

実装

適用対象