Table of Contents

Class XapiLrsCredentialList

Namespace
Xapi.Lrs
Assembly
Xapi.Lrs.dll

The Basic credentials an LRS accepts, see Credentials.

public sealed class XapiLrsCredentialList : Collection<XapiLrsCredential>, IList<XapiLrsCredential>, ICollection<XapiLrsCredential>, IReadOnlyList<XapiLrsCredential>, IReadOnlyCollection<XapiLrsCredential>, IEnumerable<XapiLrsCredential>, IList, ICollection, IEnumerable
Inheritance
XapiLrsCredentialList
Implements
Inherited Members

Methods

Add(string, string, params string[])

Adds a credential.

public XapiLrsCredential Add(string key, string secret, params string[] scopes)

Parameters

key string

The Basic user name.

secret string

The Basic password.

scopes string[]

The scopes granted, as XapiScopes names. At least one is required.

Returns

XapiLrsCredential

The added credential.

Add(string, string, Agent, params string[])

Adds a credential that stores statements with the given authority.

public XapiLrsCredential Add(string key, string secret, Agent authority, params string[] scopes)

Parameters

key string

The Basic user name.

secret string

The Basic password.

authority Agent

The authority put on statements stored with this credential.

scopes string[]

The scopes granted, as XapiScopes names. At least one is required.

Returns

XapiLrsCredential

The added credential.

InsertItem(int, XapiLrsCredential)

Inserts an element into the Collection<T> at the specified index.

protected override void InsertItem(int index, XapiLrsCredential item)

Parameters

index int

The zero-based index at which item should be inserted.

item XapiLrsCredential

The object to insert. The value can be null for reference types.

Exceptions

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.

SetItem(int, XapiLrsCredential)

Replaces the element at the specified index.

protected override void SetItem(int index, XapiLrsCredential item)

Parameters

index int

The zero-based index of the element to replace.

item XapiLrsCredential

The new value for the element at the specified index. The value can be null for reference types.

Exceptions

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than Count.