ServiceNameCollection 类

定义

ServiceNameCollection 类是服务主体名称的只读集合。The ServiceNameCollection class is a read-only collection of service principal names.

public ref class ServiceNameCollection : System::Collections::ReadOnlyCollectionBase
[System.Serializable]
public class ServiceNameCollection : System.Collections.ReadOnlyCollectionBase
type ServiceNameCollection = class
    inherit ReadOnlyCollectionBase
Public Class ServiceNameCollection
Inherits ReadOnlyCollectionBase
继承
ServiceNameCollection
属性

注解

当针对服务提供程序名称(Spn)的自定义列表进行验证时,将在 ExtendedProtectionPolicy 中使用 ServiceNameCollection 类。The ServiceNameCollection class is used in an ExtendedProtectionPolicy when validating against a custom list of service provider names (SPNs).

构造函数

ServiceNameCollection(ICollection)

基于现有的 ServiceNameCollection,初始化 ICollection 类新的只读实例。Initializes a new read-only instance of the ServiceNameCollection class based on an existing ICollection.

属性

Count
InnerList

获取 ReadOnlyCollectionBase 实例中包含的元素的列表。Gets the list of elements contained in the ReadOnlyCollectionBase instance.

(继承自 ReadOnlyCollectionBase)

方法

Contains(String)

返回一个值,该值表示指定的字符串是否出现在此 ServiceNameCollection 实例中。Returns a value indicating whether the specified string occurs within this ServiceNameCollection instance.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Merge(IEnumerable)

合并当前的 ServiceNameCollection 和指定的值,以创建包含此联合的新 ServiceNameCollectionMerges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

Merge(String)

合并当前的 ServiceNameCollection 和指定的值,以创建包含此联合的新 ServiceNameCollectionMerges the current ServiceNameCollection with the specified values to create a new ServiceNameCollection containing the union.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

ICollection.CopyTo(Array, Int32)
ICollection.IsSynchronized
ICollection.SyncRoot

扩展方法

Cast<TResult>(IEnumerable)

IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

启用查询的并行化。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于