CredentialCollection.Item[String] CredentialCollection.Item[String] CredentialCollection.Item[String] Property

Definition

Overloads

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

Gets a Credential object in the CredentialCollection collection by index number.

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

Gets a Credential object in the CredentialCollection collection by name.

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

Gets a Credential object in the CredentialCollection collection by index number.

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

An Int32 value that specifies the position of the Credential object in the CredentialCollection collection.

Property Value

A Credential object value that represents the credential.

Examples

Using Collections

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

Gets a Credential object in the CredentialCollection collection by name.

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

A String value that specifies the name of the Credential object in the CredentialCollection collection.

Property Value

A Credential object value that represents the credential.

Examples

Using Collections

Applies to