Share via


GetNotification(Microsoft.SharePoint.Portal.Alerts.NotificationSite, Microsoft.SharePoint.Portal.Alerts.NotificationSeed, System.DateTime) Method

Override the GetNotification method of the NotificationType class to get the notification with the specified parameters.

Parameters

site    Reference to a NotificationSite object that contains information about the portal site where notification was sent.

seed    Reference to a NotificationSeed object that contains data that represent this notification.

time    Date and time when notification was sent.

Return Value

Microsoft.SharePoint.Portal.Alerts.Notification object that represents the specified notification.

Exceptions

Exception Type Condition
NotificationDataUnavailableException Class A data source is unavailable. The notification is not resent.
NotificationDataTemporarilyUnavailableException Class A data source is temporarily unavailable. Throw this exception if you suspect race conditions for a resource. The notification service will attempt to sent this notification three times before it is deleted.

Remarks

the GetNotification method returns null if this notification type cannot send the specified notification.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security