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 建立的通道傳送的通知,並使用 Webpush 通訊協定搭配 VAPID 驗證推送至 WNS。 對於任何其他類型的推播通知,標頭值為 Null。

適用於