Compartilhar via


UserData Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The UserData property associates user-defined data with a SQL Distributed Management Objects (SQL-DMO) object instance.

Syntax

object
.UserData [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A long integer

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetUserData(LPVOID *pRetVal);
HRESULT SetUserData(LPVOID lpvNewValue);

Applies To:

All SQL-DMO objects