Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property String^ UserData {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

A string value of the application-specific identifier for this notification.

Exception Condition
ArgumentException

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
Show:
© 2017 Microsoft