TargetServerCollection.Item[String] TargetServerCollection.Item[String] TargetServerCollection.Item[String] Property

Definition

Overloads

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

Gets a TargetServer object in the collection by index number.

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

Gets a TargetServer object in the collection by name.

Remarks

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

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

Gets a TargetServer object in the collection by index number.

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

An Int32 value that specifies the position of the TargetServer object in the TargetServerCollection collection.

Property Value

A TargetServer object value that represents the target server.

Examples

Using Collections

Remarks

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

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

Gets a TargetServer object in the collection by name.

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

A String value that specifies the name of the TargetServer object in the TargetServerCollection collection.

Property Value

A TargetServer object value that represents the target server.

Examples

Using Collections

Remarks

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Applies to