SecurityKeyIdentifier SecurityKeyIdentifier SecurityKeyIdentifier SecurityKeyIdentifier Class

定义

表示密钥标识符。Represents a key identifier.

public ref class SecurityKeyIdentifier : System::Collections::Generic::IEnumerable<System::IdentityModel::Tokens::SecurityKeyIdentifierClause ^>
public class SecurityKeyIdentifier : System.Collections.Generic.IEnumerable<System.IdentityModel.Tokens.SecurityKeyIdentifierClause>
type SecurityKeyIdentifier = class
    interface seq<SecurityKeyIdentifierClause>
    interface IEnumerable
Public Class SecurityKeyIdentifier
Implements IEnumerable(Of SecurityKeyIdentifierClause)
继承
SecurityKeyIdentifierSecurityKeyIdentifierSecurityKeyIdentifierSecurityKeyIdentifier
实现

注解

除了创建自定义安全令牌服务之外,通常并不会使用 SecurityKeyIdentifierTypically, the SecurityKeyIdentifier is not used, other than when a custom security token service is created. 当安全令牌服务返回安全令牌时,已颁发的安全令牌包含对附加的和未附加的安全令牌的引用。When a security token service returns a security token, the issued security token contains references to attached and unattached security tokens. 附加引用是指包含在 SOAP 消息的安全标头中的安全令牌,而未附加引用则是未包含在 SOAP 消息的安全标头中的安全令牌。Attached references refer to security tokens that are contained within the security header of a SOAP message and unattached references are security tokens that are not included within the security header of a SOAP message. 这些引用通常确认已颁发的安全令牌的真实性。These references typically affirm the authenticity of the issued security token. 这些引用由从 SecurityKeyIdentifierClause 类中派生的类表示。These references are represented by classes that derive from the SecurityKeyIdentifierClause class. SecurityKeyIdentifier 类包含这些引用的集合。The SecurityKeyIdentifier class contains the collection of these references.

构造函数

SecurityKeyIdentifier() SecurityKeyIdentifier() SecurityKeyIdentifier() SecurityKeyIdentifier()

初始化 SecurityKeyIdentifier 类的新实例。Initializes a new instance of the SecurityKeyIdentifier class.

SecurityKeyIdentifier(SecurityKeyIdentifierClause[]) SecurityKeyIdentifier(SecurityKeyIdentifierClause[]) SecurityKeyIdentifier(SecurityKeyIdentifierClause[]) SecurityKeyIdentifier(SecurityKeyIdentifierClause[])

使用指定的密钥标识符子句初始化 SecurityKeyIdentifier 类的新实例。Initializes a new instance of the SecurityKeyIdentifier class using the specified key identifier clauses.

属性

CanCreateKey CanCreateKey CanCreateKey CanCreateKey

获取一个值,指示是否可以为至少一个密钥标识符子句创建密钥。Gets a value that indicates whether a key can be created for at least one of the key identifier clauses.

Count Count Count Count

获取密钥标识符子句数。Gets the number of key identifier clauses.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

获取一个值,该值指示此实例的属性是否是只读的。Gets a value that indicates whether the properties of this instance are read-only.

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

获取指定索引处的密钥标识符子句。Gets the key identifier clause at the specified index.

方法

Add(SecurityKeyIdentifierClause) Add(SecurityKeyIdentifierClause) Add(SecurityKeyIdentifierClause) Add(SecurityKeyIdentifierClause)

在列表末尾添加密钥标识符子句。Adds a key identifier clause to the end of the list.

CreateKey() CreateKey() CreateKey() CreateKey()

为密钥标识符子句之一创建密钥。Creates a key for one of the key identifier clauses.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
Find<TClause>() Find<TClause>() Find<TClause>() Find<TClause>()

搜索指定类型的密钥标识符子句,并返回整个集合中的第一个匹配项。Searches for a key identifier clause of the specified type and returns the first occurrence within the entire collection.

GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

返回一个枚举数,它循环访问密钥标识符子句集合。Returns an enumerator that iterates through the collection of key identifier clauses.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
MakeReadOnly() MakeReadOnly() MakeReadOnly() MakeReadOnly()

将此实例设置为只读的。Causes this instance to be read-only.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
ToString() ToString() ToString() ToString()

返回当前对象。Returns the current object.

TryFind<TClause>(TClause) TryFind<TClause>(TClause) TryFind<TClause>(TClause) TryFind<TClause>(TClause)

搜索指定类型的密钥标识符子句,并返回一个值,指示是否可以找到该类型的子句。Searches for a key identifier clause of the specified type and returns a value that indicates whether a clause of that type could be found. 如果找到一个类型,则在 out 参数中返回它。When a type is found it is returned in the out parameter.

显式界面实现

IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator() IEnumerable.GetEnumerator()

返回一个枚举数,它循环访问密钥标识符子句集合。Returns an enumerator that iterates through the collection of key identifier clauses.

扩展方法

CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>) CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>) Ancestors<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个节点的上级。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName) Ancestors<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个节点的上级。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>) DescendantNodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子代节点的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>) Descendants<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName) Descendants<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>) Elements<T>(IEnumerable<T>)

返回源集合中每个元素和文档的子元素的集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName) Elements<T>(IEnumerable<T>, XName)

返回源集合中经过筛选的每个元素和文档的子元素集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>) InDocumentOrder<T>(IEnumerable<T>)

返回节点集合(其中包含源集合中的所有节点),并按文档顺序排列。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>) Nodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子节点集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>) Remove<T>(IEnumerable<T>)

将源集合中的每个节点从其父节点中移除。Removes every node in the source collection from its parent node.

适用于