Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ForeignKeyColumnCollection.Item Property

 

Applies To: SQL Server 2016 Preview

Gets a ForeignKeyColumn object in the collection by name or by index number.

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

NameDescription
System_CAPS_pubpropertyItem[Int32]

Gets a ForeignKeyColumn object in the collection by index number.

System_CAPS_pubpropertyItem[String]

Gets a ForeignKeyColumn object in the collection by name.

Return to top

ForeignKeyColumnCollection.Item Property (Int32)

Gets a ForeignKeyColumn object in the collection by index number.

public ForeignKeyColumn this[
	int index
] { get; }

Parameters

index
Type: System.Int32

An Int32 value that specifies the position of the ForeignKeyColumn object in the ForeignKeyColumnCollection collection.

Property Value

Type: Microsoft.SqlServer.Management.Smo.ForeignKeyColumn

A ForeignKeyColumn object value that represents the foreign key column.

Legacy Code Example

Return to top

ForeignKeyColumnCollection.Item Property (String)

Gets a ForeignKeyColumn object in the collection by name.

public ForeignKeyColumn this[
	string name
] { get; }

Parameters

name
Type: System.String

A String value that specifies the name of the ForeignKeyColumn object in the ForeignKeyColumnCollection collection.

Property Value

Type: Microsoft.SqlServer.Management.Smo.ForeignKeyColumn

A ForeignKeyColumn object value that represents the foreign key column.

Legacy Code Example

Return to top
Show:
© 2015 Microsoft