SqlNotificationRequest.UserData Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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.

Exception Condition

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
Available since 2.0
Return to top