ForeignKey.ReferencedKey 속성

Gets the primary key referenced by the foreign key.

네임스페이스:  Microsoft.SqlServer.Management.Smo
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ReferencedKey As String 
    Get
‘사용 방법
Dim instance As ForeignKey 
Dim value As String 

value = instance.ReferencedKey
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string ReferencedKey { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ ReferencedKey {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ReferencedKey : string
function get ReferencedKey () : String

속성 값

유형: System.String
A String value that specifies the primary key referenced by the foreign key.

외래 키 생성, 변경 및 제거

참고 항목

참조

ForeignKey 클래스

Microsoft.SqlServer.Management.Smo 네임스페이스

관련 자료

FOREIGN KEY 제약 조건 만들기 및 수정

CREATE TABLE(Transact-SQL)