Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CustomDevice.FromIdAsync | fromIdAsync method

Applies to Windows only

Creates a CustomDevice object asynchronously for the specified DeviceInformation.Id.

Syntax


Windows.Devices.Custom.CustomDevice.fromIdAsync(deviceId, desiredAccess, sharingMode).done( /* Your success and error handlers */ );

Parameters

deviceId

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The DeviceInformation.Id of the device .

desiredAccess

Type: DeviceAccessMode

The desired access.

sharingMode

Type: DeviceSharingMode

The sharing mode.

Return value

Type: IAsyncOperation<CustomDevice>

Returns a custom device.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

None supported

Namespace

Windows.Devices.Custom
Windows::Devices::Custom [C++]

Metadata

Windows.winmd

See also

CustomDevice

 

 

Show:
© 2014 Microsoft