IsUnique Property
TOC
Collapse the table of content
Expand the table of content

Index::IsUnique Property

 

Gets or sets the Boolean property value that specifies whether the index is unique or not.

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

public:
[SfcPropertyAttribute(SfcPropertyFlags::None | SfcPropertyFlags::ReadOnlyAfterCreation | SfcPropertyFlags::Standalone | SfcPropertyFlags::SqlAzureDatabase | SfcPropertyFlags::Design | SfcPropertyFlags::Deploy)]
property bool IsUnique {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

A Boolean value that specifies whether the index is unique or not.

If True, the index is unique.

If False (default), the index is not unique.

This property cannot be modified by using the M:Microsoft.SqlServer.Managemetn.Smo.Index.Alter method. To change the property, the index must be rebuilt or re-created.

Return to top
Show:
© 2016 Microsoft