Share via


Generator.Unique Property

Gets or sets a value that indicates whether the column that is being generated is part of a unique constraint or a primary key constraint.

Namespace:  Microsoft.Data.Schema.DataGenerator
Assembly:  Microsoft.Data.Schema (in Microsoft.Data.Schema.dll)

Syntax

'Declaration
<InputAttribute(AutoAssignedInput := AutoAssignedInput.Unique, Visible := True,  _
    ReadOnly := False)> _
Public Property Unique As Boolean
'Usage
Dim instance As Generator 
Dim value As Boolean 

value = instance.Unique

instance.Unique = value
[InputAttribute(AutoAssignedInput = AutoAssignedInput.Unique, Visible = true, 
    ReadOnly = false)]
public bool Unique { get; set; }
[InputAttribute(AutoAssignedInput = AutoAssignedInput::Unique, Visible = true, 
    ReadOnly = false)]
public:
property bool Unique {
    bool get ();
    void set (bool value);
}
public function get Unique () : boolean 
public function set Unique (value : boolean)

Property Value

Type: System.Boolean
true if the column that is being generated is part of a unique constraint or a primary key constraint; otherwise, false.

Remarks

This property is decorated with the InputAttribute and the AutoAssignedInput named parameter.

.NET Framework Security

See Also

Reference

Generator Class

Generator Members

Microsoft.Data.Schema.DataGenerator Namespace