DevicePortalConnection 클래스

정의

Windows 디바이스 포털에 대한 연결을 처리합니다.

public ref class DevicePortalConnection sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DevicePortalConnection final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DevicePortalConnection
Public NotInheritable Class DevicePortalConnection
상속
Object Platform::Object IInspectable DevicePortalConnection
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 Creators Update (10.0.15063.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v4.0에서 도입되었습니다.)

설명

버전 기록

Windows 버전 SDK 버전 추가된 값
1803 17134 GetServerMessageWebSocketForRequest(HttpRequestMessage)
1803 17134 GetServerMessageWebSocketForRequest(HttpRequestMessage,SocketMessageType,String)
1803 17134 GetServerMessageWebSocketForRequest(HttpRequestMessage,SocketMessageType,String,UInt32,UInt32,MessageWebSocketReceiveMode)
1803 17134 GetServerStreamWebSocketForRequest(HttpRequestMessage)
1803 17134 GetServerStreamWebSocketForRequest(HttpRequestMessage,String,UInt32,Boolean)

메서드

GetForAppServiceConnection(AppServiceConnection)

전달된 앱 서비스 연결을 사용하여 DevicePortalConnection의 instance 초기화합니다.

GetServerMessageWebSocketForRequest(HttpRequestMessage)

디바이스 포털에서 사용할 서버 쪽 메시지 WebSocket을 반환합니다.

GetServerMessageWebSocketForRequest(HttpRequestMessage, SocketMessageType, String)

디바이스 포털에서 사용할 서버 쪽 메시지 WebSocket을 반환합니다.

GetServerMessageWebSocketForRequest(HttpRequestMessage, SocketMessageType, String, UInt32, UInt32, MessageWebSocketReceiveMode)

디바이스 포털에서 사용할 서버 쪽 메시지 WebSocket을 반환합니다.

GetServerStreamWebSocketForRequest(HttpRequestMessage)

디바이스 포털에서 사용할 서버 쪽 스트림 WebSocket을 반환합니다.

GetServerStreamWebSocketForRequest(HttpRequestMessage, String, UInt32, Boolean)

디바이스 포털에서 사용할 서버 쪽 스트림 WebSocket을 반환합니다.

이벤트

Closed

Windows 디바이스 포털에 대한 연결이 닫혀 있을 때 발생합니다. 디바이스 포털 플러그 인 앱은 이 이벤트에 대한 처리기를 구현해야 합니다.

RequestReceived

Windows 디바이스 포털 서버를 통해 요청이 수신되었을 때 발생합니다. 디바이스 포털 플러그 인 앱은 이 이벤트에 대한 처리기를 구현해야 합니다.

적용 대상