PosPrinter.FromIdAsync(String) 메서드

정의

지정한 DeviceInformation.Id 사용하여 서비스 지점 프린터에 대한 PosPrinter 개체를 만듭니다.

public:
 static IAsyncOperation<PosPrinter ^> ^ FromIdAsync(Platform::String ^ deviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<PosPrinter> FromIdAsync(winrt::hstring const& deviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<PosPrinter> FromIdAsync(string deviceId);
function fromIdAsync(deviceId)
Public Shared Function FromIdAsync (deviceId As String) As IAsyncOperation(Of PosPrinter)

매개 변수

deviceId
String

Platform::String

winrt::hstring

특정 서비스 지점 프린터를 식별하는 DeviceInformation.Id .

반환

고유한 디바이스 식별자가 식별하는 서비스 지점 프린터입니다. 다음 경우에 null 개체를 반환합니다.

  • 특정 프린터를 찾을 수 없습니다.
  • 기존 프린터에 대한 액세스가 거부되었습니다. 사용자는 예외로 처리되지 않는 디바이스에 대한 액세스를 거부할 수 있습니다.
특성

설명

앱 패키지 매니페스트에는 PointofService 디바이스 기능이 포함되어야 합니다. 매니페스트에서 이 기능을 생략하면 이 메서드는 null을 반환하며 예외가 생성되지 않습니다.

적용 대상

추가 정보