SqlNotificationRequest.UserData Property

Gets or sets an application-specific identifier for this notification.

Namespace:  System.Data.Sql
Assembly:  System.Data (in System.Data.dll)

public string UserData { get; set; }

Property Value

Type: System.String
A string value of the application-specific identifier for this notification.


The value is longer than uint16.MaxValue.

This value is not used by the notifications infrastructure. Instead, it is a mechanism that allows an application to associate notifications with application state. The value specified in the UserData property is included in the SQL Server 2005 queue message.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft