SynonymCollection.Item[String, String] SynonymCollection.Item[String, String] SynonymCollection.Item[String, String] Property

Definition

Overloads

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

Gets a Synonym object in the collection by index number.

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

Gets a Synonym object in the collection by name.

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

Gets a Synonym object in the collection by name.

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

Gets a Synonym object in the collection by index number.

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

An Int32 value that specifies the position of the Synonym object in the SynonymCollection collection.

Property Value

A Synonym object value that represents the synonym.

Examples

Using Collections

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

Gets a Synonym object in the collection by name.

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

A String value that specifies the name of the Synonym object in the SynonymCollection collection.

Property Value

A Synonym object value that represents the synonym.

Examples

Using Collections

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

Gets a Synonym object in the collection by name.

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

A String value that specifies the name of the Synonym object in the SynonymCollection collection.

schema
String String String

A String value that specifies the schema of the synonym.

Property Value

A Synonym object value that represents the synonym.

Examples

Using Collections

Applies to