Share via


IUniqueConstraint Interface

Represents a SQL Server UNIQUE constraint.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IUniqueConstraint _
    Inherits IUniqueConstraintBase, IConstraint, IMetadataObject
'Usage
Dim instance As IUniqueConstraint
public interface IUniqueConstraint : IUniqueConstraintBase, 
    IConstraint, IMetadataObject
public interface class IUniqueConstraint : IUniqueConstraintBase, 
    IConstraint, IMetadataObject
type IUniqueConstraint =  
    interface
        interface IUniqueConstraintBase
        interface IConstraint
        interface IMetadataObject
    end
public interface IUniqueConstraint extends IUniqueConstraintBase, IConstraint, IMetadataObject

The IUniqueConstraint type exposes the following members.

Properties

  Name Description
Public property AssociatedIndex Gets an object that represents the index that implements the constraint. (Inherited from IUniqueConstraintBase.)
Public property IsSystemNamed Gets a value that indicates whether the constraint is named by the system or by the user. (Inherited from IConstraint.)
Public property Name Gets the name of the metadata object. (Inherited from IMetadataObject.)
Public property Parent Gets the ITabular object that is the parent of this object. (Inherited from IConstraint.)
Public property Type Gets a ConstraintType value that indicates the constraint type. (Inherited from IConstraint.)

Top

Methods

  Name Description
Public method Accept<T> Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.)

Top