IConstraintFactory.CreatePrimaryKeyConstraint(ITabular, IRelationalIndex) IConstraintFactory.CreatePrimaryKeyConstraint(ITabular, IRelationalIndex) IConstraintFactory.CreatePrimaryKeyConstraint(ITabular, IRelationalIndex) Method

정의

지정한 IPrimaryKeyConstraint 개체와 연결된 IRelationalIndex 개체를 만듭니다. Creates an IPrimaryKeyConstraint object that is associated with the specified IRelationalIndex object.

public:
 Microsoft::SqlServer::Management::SqlParser::Metadata::IPrimaryKeyConstraint ^ CreatePrimaryKeyConstraint(Microsoft::SqlServer::Management::SqlParser::Metadata::ITabular ^ parent, Microsoft::SqlServer::Management::SqlParser::Metadata::IRelationalIndex ^ index);
public Microsoft.SqlServer.Management.SqlParser.Metadata.IPrimaryKeyConstraint CreatePrimaryKeyConstraint (Microsoft.SqlServer.Management.SqlParser.Metadata.ITabular parent, Microsoft.SqlServer.Management.SqlParser.Metadata.IRelationalIndex index);
Public Function CreatePrimaryKeyConstraint (parent As ITabular, index As IRelationalIndex) As IPrimaryKeyConstraint
매개 변수
parent
ITabular ITabular ITabular

제약 조건의 부모인 개체입니다. The object that is the parent of the constraint.

index
IRelationalIndex IRelationalIndex IRelationalIndex

만들 기본 키와 연결된 인덱스 개체입니다. The index object that is associated with the primary key to create.

반환

적용 대상