Share via


ForeignKey.IsSystemNamed Property

Gets the Boolean property value that specifies whether the foreign key is named by the system or by the user.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property IsSystemNamed As Boolean 
    Get
'Usage
Dim instance As ForeignKey 
Dim value As Boolean 

value = instance.IsSystemNamed
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public bool IsSystemNamed { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property bool IsSystemNamed {
    bool get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member IsSystemNamed : bool
function get IsSystemNamed () : boolean

Property Value

Type: System.Boolean
A Boolean value that specifies whether the foreign key is named by the system or the user.If True, the foreign key is named by the system.If False (default), the foreign key is named by the user.

Examples

Creating, Altering, and Removing Foreign Keys

See Also

Reference

ForeignKey Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Creating and Modifying FOREIGN KEY Constraints

CREATE TABLE (Transact-SQL)