RawNotification.Headers プロパティ

定義

通知から生のヘッダー コンテンツを取得します。

public:
 property IMapView<Platform::String ^, Platform::String ^> ^ Headers { IMapView<Platform::String ^, Platform::String ^> ^ get(); };
IMapView<winrt::hstring, winrt::hstring const&> Headers();
public IReadOnlyDictionary<string,string> Headers { get; }
var iMapView = rawNotification.headers;
Public ReadOnly Property Headers As IReadOnlyDictionary(Of String, String)

プロパティ値

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

ヘッダー値のマップ ビュー。 ヘッダー形式については、「解説」を参照してください。

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

注釈

ヘッダーの形式:

Content-Encoding: aesgcm
Crypto-Key: dh=<PUBLICKEY>
Encryption: salt=<SALT>

ヘッダーの定義方法の詳細と詳細については、「 Web プッシュのメッセージ暗号化」セクション 3.2 を参照してください。

ヘッダー コンテンツは、 CreateRawPushNotificationChannelWithAlternateKeyForApplicationAsync で作成され、VAPID 認証を使用して Webpush プロトコルを使用して WNS にプッシュされたチャネルを使用して送信される通知用です。 その他の種類のプッシュ通知の場合、ヘッダー値は null です。

適用対象