Notification Class

Represents a notification subscription for file system events.

public sealed class Notification

Constructors

NameDescription
Notification(PRJ_NOTIFY_TYPES)Initializes a new instance of the Notification class for all paths.
Notification(string?, PRJ_NOTIFY_TYPES)Initializes a new instance of the Notification class for a specific path.

Notification overloads

Notification(PRJ_NOTIFY_TYPES)

Notification.cs

Initializes a new instance of the Notification class for all paths.

public Notification(PRJ_NOTIFY_TYPES notificationType)
Parameters
notificationType PRJ_NOTIFY_TYPES
The types of notifications to receive.

Notification(string?, PRJ_NOTIFY_TYPES)

Notification.cs

Initializes a new instance of the Notification class for a specific path.

public Notification(string? path, PRJ_NOTIFY_TYPES notificationType)
Parameters
path string?
The path to receive notifications for, or null for all paths.
notificationType PRJ_NOTIFY_TYPES
The types of notifications to receive.

Properties

NameDescription
NotificationTypeGets the types of notifications to receive.
PathGets the path to receive notifications for, or null for all paths.

NotificationType

Notification.cs

Gets the types of notifications to receive.

public PRJ_NOTIFY_TYPES NotificationType { get; }

Property value

PRJ_NOTIFY_TYPES

Gets the path to receive notifications for, or null for all paths.

public string? Path { get; }

Property value

string?