DefaultClaimSet DefaultClaimSet DefaultClaimSet DefaultClaimSet Class

定義

提供 ClaimSet 類別的預設實作。Provides a default implementation of the ClaimSet class.

public ref class DefaultClaimSet : System::IdentityModel::Claims::ClaimSet
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.xmlsoap.org/ws/2005/05/identity")]
public class DefaultClaimSet : System.IdentityModel.Claims.ClaimSet
type DefaultClaimSet = class
    inherit ClaimSet
Public Class DefaultClaimSet
Inherits ClaimSet
繼承
DefaultClaimSetDefaultClaimSetDefaultClaimSetDefaultClaimSet
屬性

備註

這是 ClaimSet 抽象基底類別的具體實作。This is a concrete implementation of the ClaimSet abstract base class. IAuthorizationPolicy 的實作可使用此類別的執行個體,將 ClaimSet 新增至 EvaluationContextImplementations of IAuthorizationPolicy can use an instance of this class to add a ClaimSet to an EvaluationContext.

建構函式

DefaultClaimSet(ClaimSet, Claim[]) DefaultClaimSet(ClaimSet, Claim[]) DefaultClaimSet(ClaimSet, Claim[]) DefaultClaimSet(ClaimSet, Claim[])

使用指定的宣告,初始化 DefaultClaimSet 類別的新執行個體。Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(ClaimSet, IList<Claim>) DefaultClaimSet(ClaimSet, IList<Claim>) DefaultClaimSet(ClaimSet, IList<Claim>) DefaultClaimSet(ClaimSet, IList<Claim>)

使用指定的宣告,初始化 DefaultClaimSet 類別的新執行個體。Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(Claim[]) DefaultClaimSet(Claim[]) DefaultClaimSet(Claim[]) DefaultClaimSet(Claim[])

使用指定的宣告,初始化 DefaultClaimSet 類別的新執行個體。Initializes a new instance of the DefaultClaimSet class, using the specified claims.

DefaultClaimSet(IList<Claim>) DefaultClaimSet(IList<Claim>) DefaultClaimSet(IList<Claim>) DefaultClaimSet(IList<Claim>)

使用指定的宣告,初始化 DefaultClaimSet 類別的新執行個體。Initializes a new instance of the DefaultClaimSet class, using the specified claims.

屬性

Count Count Count Count

取得此宣告集中的 Claim 物件數目。Gets the number of Claim objects in this claim set.

Issuer Issuer Issuer Issuer

取得發出該宣告集的 ClaimSet 物件。Gets the ClaimSet object that issued this claim set.

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

取得指定索引的 ClaimGets the Claim for the specified index.

方法

ContainsClaim(Claim) ContainsClaim(Claim) ContainsClaim(Claim) ContainsClaim(Claim)

判斷指定的宣告是否包含在此宣告集中。Determines whether the specified claim is contained within this claim set.

ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>) ContainsClaim(Claim, IEqualityComparer<Claim>)

使用指定的 ClaimSet 物件,判斷 Claim 是否包含指定的 IEqualityComparer<T>Determines whether the ClaimSet contains the specified Claim, by using the specified IEqualityComparer<T> object.

(Inherited from ClaimSet)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindClaims(String, String) FindClaims(String, String) FindClaims(String, String) FindClaims(String, String)

搜尋符合指定之宣告型別及 Claim 中的權限的 DefaultClaimSet 物件。Searches for the Claim object that matches the specified claim type and rights in the DefaultClaimSet.

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

取得可用來列舉在 IEnumerator<T>Claim 物件的 DefaultClaimSetGets an IEnumerator<T> that can be used to enumerate the Claim object in the DefaultClaimSet.

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)
Initialize(ClaimSet, IList<Claim>) Initialize(ClaimSet, IList<Claim>) Initialize(ClaimSet, IList<Claim>) Initialize(ClaimSet, IList<Claim>)

使用指定的宣告來初始化 DefaultClaimSet 類別的執行個體。Initializes an instance of the DefaultClaimSet class, using the specified claims.

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

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

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

傳回此 ClaimSet 物件。Returns this ClaimSet object.

明確介面實作

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

取得可用來列舉在 IEnumerator<T>Claim 物件的 ClaimSetGets an IEnumerator<T> that can be used to enumerate the Claim object in the ClaimSet.

(Inherited from ClaimSet)

擴充方法

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

根據輸入 DataTable 物件 (其中泛型參數 TDataRow) 傳回包含 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)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 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)

根據輸入 DataRow 物件 (其中泛型參數 TDataTable),將 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.

適用於