Share via


IDefaultConstraint Interface

Represents a SQL Server default constraint.

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

Syntax

'Declaration
Public Interface IDefaultConstraint _
    Inherits IMetadataObject
'Usage
Dim instance As IDefaultConstraint
public interface IDefaultConstraint : IMetadataObject
public interface class IDefaultConstraint : IMetadataObject
type IDefaultConstraint =  
    interface 
        interface IMetadataObject 
    end
public interface IDefaultConstraint extends IMetadataObject

The IDefaultConstraint type exposes the following members.

Properties

  Name Description
Public property IsSystemNamed Gets a value that indicates whether the constraint was named by the system or a user.
Public property Name Gets the name of the metadata object. (Inherited from IMetadataObject.)
Public property Parent Gets the IColumn object that is the parent of this object.
Public property Text Gets the Transact-SQL statement that defines the default constraint.

Top

Methods

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

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace