Share via


SPAlert.DynamicRecipient property

Gets or sets the string in Collaborative Application Markup Language (CAML) that defines the event data to used to populate the e-mail recipient field in the alert.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property DynamicRecipient As String
    Get
    Set
'Usage
Dim instance As SPAlert
Dim value As String

value = instance.DynamicRecipient

instance.DynamicRecipient = value
public string DynamicRecipient { get; set; }

Property value

Type: System.String
A CAML string that contains the event data for the e-mail recipient field; for example, <FieldRef Name = "assignedto/New">, where /New is optional.

Remarks

Note

The DynamicRecipient property does not work in search alerts.

For more information about the CAML query schema, refer to Query Schema.

See also

Reference

SPAlert class

SPAlert members

Microsoft.SharePoint namespace