AuthenticationInfoCollection Class

Definition

表示一个表, 该表包含用于填充连接对话框的简单视图的身份验证标签。Represents a table that contains the authentication labels that are used to populate the simple view of the connection dialog box.

public ref class AuthenticationInfoCollection : System::Collections::ICollection
public class AuthenticationInfoCollection : System.Collections.ICollection
type AuthenticationInfoCollection = class
    interface ICollection
    interface IEnumerable
Public Class AuthenticationInfoCollection
Implements ICollection
Inheritance
AuthenticationInfoCollection
Implements

Constructors

AuthenticationInfoCollection()

使用默认属性值初始化AuthenticationInfoCollection类的新实例。Initializes a new instance of the AuthenticationInfoCollection class with the default property values.

AuthenticationInfoCollection(AuthenticationInfo[])

使用指定的项参数初始化AuthenticationInfoCollection类的新实例。Initializes a new instance of the AuthenticationInfoCollection class with the specified entries parameter.

AuthenticationInfoCollection(AuthenticationInfo[], Int32)

使用指定的条目和默认AuthenticationInfoCollection索引参数初始化类的新实例。Initializes a new instance of the AuthenticationInfoCollection class with the specified entries and default index parameters.

Fields

def

定义一个指定默认索引的值。Defines a value that specifies the default index.

entries

定义身份验证信息集合的内容。Defines the contents of the authentication information collection.

syncObject

定义一个对象, 该对象表示允许用户配置不同同步的发送/接收组。Defines an object that represents a send/receive group that lets user configure different synchronization.

Properties

Count

获取集合中实际包含的元素数。Gets the number of elements actually contained in the collection.

DefaultIndex

获取或设置集合中默认对象的索引。Gets or sets the index of the default object within the collection.

IsSynchronized

获取一个值, 该值指示是否同步对集合的访问。Gets a value indicating whether access to the collection is synchronized.

Item[Int32]

按位置或键返回集合对象的特定元素。Returns a specific element of a collection object either by position or by key. 该属性为只读。This property is read-only.

SyncRoot

获取一个对象, 该对象可用于同步对集合对象的访问。Gets an object that can be used to synchronize access to the Collection object.

Methods

Add(AuthenticationInfo)

将身份验证信息添加到集合。Adds authentication information to a collection.

CopyTo(Array, Int32)

将 ICollection 接口的元素复制到一个数组中, 从特定的数组索引处开始复制。Copies the elements of the ICollection interface to an array, starting at a particular Array index.

FindByAuthenticationType(Int32)

指示按其身份验证类型搜索的信息集合。Indicates the information collection that is searched by its authentication type.

GetEnumerator()

检索对用于循环访问集合对象的枚举器对象的引用。Retrieves a reference to an enumerator object, which is used to iterate over a collection object.

Applies to