AuthenticationInfoCollection 类

定义

表示一个表,包含用于填充连接对话框简单视图的认证标签。

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
继承
AuthenticationInfoCollection
实现

构造函数

名称 说明
AuthenticationInfoCollection()

初始化一个带有默认属性值的新 AuthenticationInfoCollection 类实例。

AuthenticationInfoCollection(AuthenticationInfo[], Int32)

初始化一个新的类实例 AuthenticationInfoCollection ,使用指定的条目和默认索引参数。

AuthenticationInfoCollection(AuthenticationInfo[])

初始化该类的新实例 AuthenticationInfoCollection ,使用指定的条目参数。

字段

名称 说明
def

定义一个指定默认索引的值。

entries

定义认证信息收集的内容。

syncObject

定义一个对象,代表发送/接收组,允许用户配置不同的同步方式。

属性

名称 说明
Count

获取集合中实际包含的元素数量。

DefaultIndex

获取或设置集合中默认对象的索引。

IsSynchronized

获取一个值,该值指示是否同步对集合的访问。

Item[Int32]

返回集合对象的特定元素,可以按位置或键返回。 此属性为只读。

SyncRoot

获得一个可用于同步访问集合对象的对象。

方法

名称 说明
Add(AuthenticationInfo)

向集合添加认证信息。

CopyTo(Array, Int32)

将 ICollection 接口的元素复制到数组,从特定的数组索引开始。

FindByAuthenticationType(Int32)

表示按认证类型搜索的信息集合。

GetEnumerator()

检索到一个枚举对象的引用,用于对集合对象进行迭代。

适用于