Share via


ServerAliasCollection.Item[] Property

Definition

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

Overloads

Item[Int32]

Gets a ServerAlias object in the collection by index number.

Item[String]

Gets a ServerAlias object in the collection by name.

Item[Int32]

Gets a ServerAlias object in the collection by index number.

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

Parameters

index
Int32

An Int32 value that specifies the position of the ServerAlias object in the ServerAliasCollection collection.

Property Value

A ServerAlias object value that represents a SQL Server alias.

Examples

Using Collections

Applies to

Item[String]

Gets a ServerAlias object in the collection by name.

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

Parameters

name
String

A String value that specifies the name of the ServerAlias object in the ServerAliasCollection collection.

Property Value

A ServerAlias object value that represents a SQL Server alias.

Examples

Using Collections

Applies to