Share via


Generator.Constraints Property

Gets or sets the check constraint information for the column.

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

Syntax

'Declaration
<InputAttribute(AutoAssignedInput := AutoAssignedInput.Constraint, ReadOnly := True,  _
    Visible := False)> _
Public Property Constraints As Collection(Of String)
    Get
    Set
'Usage
Dim instance As Generator
Dim value As Collection(Of String)

value = instance.Constraints

instance.Constraints = value
[InputAttribute(AutoAssignedInput = AutoAssignedInput.Constraint, ReadOnly = true, 
    Visible = false)]
public Collection<string> Constraints { get; set; }
[InputAttribute(AutoAssignedInput = AutoAssignedInput::Constraint, ReadOnly = true, 
    Visible = false)]
public:
property Collection<String^>^ Constraints {
    Collection<String^>^ get ();
    void set (Collection<String^>^ value);
}
function get Constraints () : Collection<String>
function set Constraints (value : Collection<String>)
[<InputAttribute(AutoAssignedInput = AutoAssignedInput.Constraint, ReadOnly = true, 
    Visible = false)>]
member Constraints : Collection<string> with get, set

Property Value

Type: System.Collections.ObjectModel.Collection<String>
A collection of strings that contain the check constraints that are defined on the column.

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