GetRecipients method: PSEvent class
Syntax
GetRecipients(type)
Description
Use the GetRecipients method to get all the recipients of a particular type from the notification.
Parameters
| Parameter | Description |
|---|---|
|
type |
A number representing the type of recipients:
|
Returns
An array of string representing the recipients for the specified type.
Example
The following example retrieves all role-type recipients:
Local array of string &RoleNames;
&type = 2;
RoleNames= &EventObject.GetRecipients(&type);