Function (Windows 10)

Declares the function for the device.

Element hierarchy

<Package>

    <Capabilities>

         <DeviceCapability>

              <Device>

                   <Function>

Syntax

<Function
  Type = 'A string with a value between 1 and 100 characters in length. Where appropriate, it may begin with "classId:", "winUsbId:", "serviceId:", "usage:", or "interfaceId:".' />

Attributes and elements

Attributes

Attribute Description Data type Required Default value
Type The type of function for the device. A string with a value between 1 and 100 characters in length. Where appropriate, it may begin with classId:, winUsbId:, serviceId:, usage:, or interfaceId:. Yes

Child elements

None.

Parent elements

Parent element Description
Device Declares a function for a device that is associated with the DeviceCapability. On Windows 10.0.10240.0, a DeviceCapability can contain up to 100 Device elements. On Windows 10.0.10586.0, it can contain up to 1000 (for more details, see DeviceCapability).

Requirements

Item Value
Namespace http://schemas.microsoft.com/appx/manifest/foundation/windows10