Share via


UserDefinedMessage.ID Property

Gets the ID value that uniquely identifies the user-defined message.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcKeyAttribute()> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property ID As Integer 
    Get 
    Set
'Usage
Dim instance As UserDefinedMessage 
Dim value As Integer 

value = instance.ID

instance.ID = value
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public int ID { get; set; }
[SfcKeyAttribute()]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property int ID {
    int get ();
    void set (int value);
}
[<SfcKeyAttribute()>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member ID : int with get, set
function get ID () : int 
function set ID (value : int)

Property Value

Type: System.Int32
An Int32 value that specifies ID value that uniquely identifies the user-defined message.

Examples

Using Messages

See Also

Reference

UserDefinedMessage Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Errors and Messages