RemoveRecipients method: PSEvent class

Syntax

RemoveRecipients(type)

Description

Use the RemoveRecipients method to remove all the recipients of a particular type from the notification.

Parameters

Parameter Description

type

A number representing the type of recipients:

  • 1 — For user IDs.

  • 2 — For role names.

Returns

None.

Example

The following example removes recipients of type "role names" from the notification.

&type = 2;
&EventObject.RemoveRecipients(&type);