Delen via


PrintExtensionContext.FromDeviceId(String) Method

Definition

Gets the context for the printer extension object based on the DeviceInformation ID.

public:
 static Platform::Object ^ FromDeviceId(Platform::String ^ deviceId);
 static IInspectable FromDeviceId(winrt::hstring const& deviceId);
public static object FromDeviceId(string deviceId);
function fromDeviceId(deviceId)
Public Shared Function FromDeviceId (deviceId As String) As Object

Parameters

deviceId
String

Platform::String

winrt::hstring

The device information ID for the print device.

Returns

Object

Platform::Object

IInspectable

Pointer to the context.

Applies to

See also