다음을 통해 공유


IsForeignKey 속성

Gets the Boolean property value that specifies whether the column is a foreign key.

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

구문

‘선언
<SfcPropertyAttribute> _
Public ReadOnly Property IsForeignKey As Boolean
    Get
‘사용 방법
Dim instance As Column
Dim value As Boolean

value = instance.IsForeignKey
[SfcPropertyAttribute]
public bool IsForeignKey { get; }
[SfcPropertyAttribute]
public:
property bool IsForeignKey {
    bool get ();
}
[<SfcPropertyAttribute>]
member IsForeignKey : bool
function get IsForeignKey () : boolean

속성 값

형식: System. . :: . .Boolean
A Boolean value that specifies whether the column is a foreign key.
If True, the column is a foreign key. Otherwise, False (default).

주의

The foreign key is the column referenced by a primary key column in another table.

[!참고]

The value of the IsForeignKey property is always treated as false by columns based on the UserDefinedTableType object.