你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Notification Class

Definition

Abstract class representing a generic notification hub notification, including the target tag.

public abstract class Notification
type Notification = class
Public MustInherit Class Notification
Inheritance
Notification
Derived

Constructors

Name Description
Notification(IDictionary<String,String>, String, String)

Initializes a new instance of the Notification class.

Properties

Name Description
Body

Gets or sets notification body.

ContentType

Gets or sets the type of the notification content.

Headers

Gets or sets notification headers.

PlatformType

Gets the type of the platform.

Tag
Obsolete.

Gets or sets the notification tag.

Methods

Name Description
AddOrUpdateHeader(String, String)

Add or updates a header with a given key and value.

OnValidateAndPopulateHeaders()

Validate and populates the headers.

Applies to