LinkedServerCollection.Item[String] LinkedServerCollection.Item[String] LinkedServerCollection.Item[String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets a LinkedServer object in the LinkedServerCollection collection by index number.

Item[String] Item[String] Item[String]

Gets a LinkedServer object in the LinkedServerCollection collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets a LinkedServer object in the LinkedServerCollection collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::LinkedServer ^ default[int] { Microsoft::SqlServer::Management::Smo::LinkedServer ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.LinkedServer this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As LinkedServer
Parameters
index
Int32 Int32 Int32

An Int32 value that specifies the position of the LinkedServer object in the LinkedServerCollection collection.

Property Value

A LinkedServer object value that represents the linked server.

Examples

Using Collections

Item[String] Item[String] Item[String]

Gets a LinkedServer object in the LinkedServerCollection collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::LinkedServer ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::LinkedServer ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.LinkedServer this[string name] { get; }
Default Public ReadOnly Property Item(name As String) As LinkedServer
Parameters
name
String String String

A String value that specifies the name of the LinkedServer object in the LinkedServerCollection collection.

Property Value

A LinkedServer object value that represents the linked server.

Examples

Using Collections

Applies to