ApplicationRoleCollection.Item[String] ApplicationRoleCollection.Item[String] ApplicationRoleCollection.Item[String] Property

Definition

Overloads

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

Gets an ApplicationRole object in the collection by index number.

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

Gets an ApplicationRole object in the collection by name.

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

Gets an ApplicationRole object in the collection by index number.

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

An Int32 value that specifies the position of the ApplicationRole object in the ApplicationRoleCollection collection.

Property Value

An ApplicationRole object value that represents the application role.

Examples

Using Collections

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

Gets an ApplicationRole object in the collection by name.

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

A string value that specifies the name of the ApplicationRole object in the ApplicationRoleCollection collection.

Property Value

An ApplicationRole object value that represents the application role.

Examples

Using Collections

Applies to