PnpObjectCollection.Size Property

Definition

Important

We no longer recommend that you use the types in the Windows.Devices.Enumeration.Pnp namespace. Instead, the types in the Windows.Devices.Enumeration namespace implement a modern, and better maintained, superset of the functionality of Windows.Devices.Enumeration.Pnp.

The alternative to PnpObjectType is the Windows.Devices.Enumeration.DeviceInformationKind enum, which you can pass as a parameter to Windows.Devices.Enumeration APIs. For example, instead of using PnpObjectType when you create a PnpObjectWatcher, use DeviceInformationKind when you create a DeviceWatcher.

Returns the number of items in the collection.

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

Property Value

UInt32

unsigned int

uint32_t

The number of items in the collection.

Implements

Applies to