SPAlert.User property
Gets or sets a user object representing the user who created the alert.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property User As SPUser
Get
Set
'Usage
Dim instance As SPAlert
Dim value As SPUser
value = instance.User
instance.User = value
public SPUser User { get; set; }
Property value
Type: Microsoft.SharePoint.SPUser
An SPUser object that represents the user. This property returns a null reference (Nothing in Visual Basic) if the alert is a system alert.
Remarks
The User property is required for new alerts and defaults to the currently impersonated user.