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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
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.