HttpClientCertificate HttpClientCertificate HttpClientCertificate HttpClientCertificate Class

定義

提供用戶端為回應伺服器的用戶端識別要求所發出的用戶端憑證欄位。Provides the client certificate fields issued by the client in response to the server's request for the client's identity.

public ref class HttpClientCertificate : System::Collections::Specialized::NameValueCollection
public class HttpClientCertificate : System.Collections.Specialized.NameValueCollection
type HttpClientCertificate = class
    inherit NameValueCollection
Public Class HttpClientCertificate
Inherits NameValueCollection
繼承

備註

如果網頁瀏覽器使用 SSL3.0/PCT1 通訊協定 (URL 開頭為 https:// 而非 http://) 來連接到伺服器和伺服器需要用戶端憑證,用戶端憑證欄位包含在其數位憑證的瀏覽器傳送。If a Web browser uses the SSL3.0/PCT1 protocol (the URL begins with https:// instead of http://) to connect to a server and the server requires client certificates, the browser sends the client certificate fields contained in its digital certificate.

如需有關數位簽章的詳細資訊,請參閱文件的 X.509:公開金鑰和屬性的憑證架構,可在國際電信聯盟 (ITU) 網站上取得https://www.itu.intFor more information about digital certificates, see the document X.509: Public-key and attribute certificate frameworks, available on the International Telecommunication Union (ITU) site at https://www.itu.int.

屬性

AllKeys AllKeys AllKeys AllKeys

取得 NameValueCollection 中的所有索引鍵。Gets all the keys in the NameValueCollection.

(Inherited from NameValueCollection)
BinaryIssuer BinaryIssuer BinaryIssuer BinaryIssuer

以二進位格式,取得或設定憑證簽發者。Gets or sets the certificate issuer, in binary format.

CertEncoding CertEncoding CertEncoding CertEncoding

取得憑證的編碼方式。Gets the encoding of the certificate.

Certificate Certificate Certificate Certificate

以 ASN.1 格式,取得包含整個憑證內容的二進位資料流的字串。Gets a string containing the binary stream of the entire certificate content, in ASN.1 format.

Cookie Cookie Cookie Cookie

如果有提供,取得用戶端憑證的唯一 ID。Gets the unique ID for the client certificate, if provided.

Count Count Count Count

取得 NameObjectCollectionBase 執行個體中包含的索引鍵/值組數目。Gets the number of key/value pairs contained in the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
Flags Flags Flags Flags

一組旗標,提供額外的用戶端憑證資訊。A set of flags that provide additional client certificate information.

ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized ICollection.IsSynchronized

取得值,表示是否要同步處理 (執行緒安全) 對 NameObjectCollectionBase 物件的存取。Gets a value indicating whether access to the NameObjectCollectionBase object is synchronized (thread safe).

(Inherited from NameObjectCollectionBase)
ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot ICollection.SyncRoot

取得可用來同步處理對 NameObjectCollectionBase 物件之存取的物件。Gets an object that can be used to synchronize access to the NameObjectCollectionBase object.

(Inherited from NameObjectCollectionBase)
IsPresent IsPresent IsPresent IsPresent

取得值,指出用戶端憑證是否存在。Gets a value that indicates whether the client certificate is present.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

取得或設定值,表示 NameObjectCollectionBase 執行個體是否為唯讀。Gets or sets a value indicating whether the NameObjectCollectionBase instance is read-only.

(Inherited from NameObjectCollectionBase)
Issuer Issuer Issuer Issuer

包含子欄位值清單的字串,包含憑證簽發者的相關資訊。A string that contains a list of subfield values containing information about the certificate issuer.

IsValid IsValid IsValid IsValid

取得值,指出用戶端憑證是否有效。Gets a value that indicates whether the client certificate is valid.

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

取得 NameValueCollection 的指定索引的項目。Gets the entry at the specified index of the NameValueCollection.

(Inherited from NameValueCollection)
Item[String] Item[String] Item[String] Item[String]

使用 NameValueCollection 中指定的索引鍵來取得或設定項目。Gets or sets the entry with the specified key in the NameValueCollection.

(Inherited from NameValueCollection)
Keys Keys Keys Keys

取得 NameObjectCollectionBase.KeysCollection 執行個體,其中包含 NameObjectCollectionBase 執行個體中的所有索引鍵。Gets a NameObjectCollectionBase.KeysCollection instance that contains all the keys in the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
KeySize KeySize KeySize KeySize

取得數位憑證金鑰大小裡的位元數。Gets the number of bits in the digital certificate key size. 例如 128。For example, 128.

PublicKey PublicKey PublicKey PublicKey

取得來自憑證的公開金鑰 (Public Key) 二進位值。Gets the public key binary value from the certificate.

SecretKeySize SecretKeySize SecretKeySize SecretKeySize

取得伺服器憑證私密金鑰裡的位元數。Gets the number of bits in the server certificate private key. 例如,1024。For example, 1024.

SerialNumber SerialNumber SerialNumber SerialNumber

提供以短破折號分隔之十六進位位元組的 ASCII 表示的憑證序號。Provides the certificate serial number as an ASCII representation of hexadecimal bytes separated by hyphens. 例如 04-67-F3-02。For example, 04-67-F3-02.

ServerIssuer ServerIssuer ServerIssuer ServerIssuer

取得伺服器憑證的簽發者欄位。Gets the issuer field of the server certificate.

ServerSubject ServerSubject ServerSubject ServerSubject

取得伺服器憑證的主旨欄位。Gets the subject field of the server certificate.

Subject Subject Subject Subject

取得用戶端憑證的主旨欄位。Gets the subject field of the client certificate.

ValidFrom ValidFrom ValidFrom ValidFrom

取得憑證變成有效時的日期。Gets the date when the certificate becomes valid. 日期會隨著國際設定而變。The date varies with international settings.

ValidUntil ValidUntil ValidUntil ValidUntil

取得憑證到期日。Gets the certificate expiration date.

方法

Add(NameValueCollection) Add(NameValueCollection) Add(NameValueCollection) Add(NameValueCollection)

將指定 NameValueCollection 中的項目複製到目前的 NameValueCollectionCopies the entries in the specified NameValueCollection to the current NameValueCollection.

(Inherited from NameValueCollection)
Add(String, String) Add(String, String) Add(String, String) Add(String, String)

將具有指定名稱和數值的項目加入 NameValueCollectionAdds an entry with the specified name and value to the NameValueCollection.

(Inherited from NameValueCollection)
BaseAdd(String, Object) BaseAdd(String, Object) BaseAdd(String, Object) BaseAdd(String, Object)

將具有指定索引鍵和值的項目加入 NameObjectCollectionBase 執行個體。Adds an entry with the specified key and value into the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseClear() BaseClear() BaseClear() BaseClear()

將所有項目從 NameObjectCollectionBase 執行個體中移除。Removes all entries from the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGet(Int32) BaseGet(Int32) BaseGet(Int32) BaseGet(Int32)

取得 NameObjectCollectionBase 執行個體指定索引處之項目的值。Gets the value of the entry at the specified index of the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGet(String) BaseGet(String) BaseGet(String) BaseGet(String)

NameObjectCollectionBase 執行個體取得具有指定索引鍵之第一個項目的值。Gets the value of the first entry with the specified key from the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGetAllKeys() BaseGetAllKeys() BaseGetAllKeys() BaseGetAllKeys()

傳回 String 陣列,其中包含 NameObjectCollectionBase 執行個體中的所有索引鍵。Returns a String array that contains all the keys in the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGetAllValues() BaseGetAllValues() BaseGetAllValues() BaseGetAllValues()

傳回 Object 陣列,其中包含 NameObjectCollectionBase 執行個體中的所有值。Returns an Object array that contains all the values in the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGetAllValues(Type) BaseGetAllValues(Type) BaseGetAllValues(Type) BaseGetAllValues(Type)

傳回指定類型的陣列,其中包含 NameObjectCollectionBase 執行個體中的所有值。Returns an array of the specified type that contains all the values in the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseGetKey(Int32) BaseGetKey(Int32) BaseGetKey(Int32) BaseGetKey(Int32)

取得 NameObjectCollectionBase 執行個體指定索引處之項目的索引鍵。Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseHasKeys() BaseHasKeys() BaseHasKeys() BaseHasKeys()

取得值,表示 NameObjectCollectionBase 執行個體是否包含其索引鍵不是 null 的項目。Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not null.

(Inherited from NameObjectCollectionBase)
BaseRemove(String) BaseRemove(String) BaseRemove(String) BaseRemove(String)

將具有指定索引鍵的項目從 NameObjectCollectionBase 中移除。Removes the entries with the specified key from the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseRemoveAt(Int32) BaseRemoveAt(Int32) BaseRemoveAt(Int32) BaseRemoveAt(Int32)

移除 NameObjectCollectionBase 執行個體指定索引處的項目。Removes the entry at the specified index of the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseSet(Int32, Object) BaseSet(Int32, Object) BaseSet(Int32, Object) BaseSet(Int32, Object)

設定 NameObjectCollectionBase 執行個體指定索引處之項目的值。Sets the value of the entry at the specified index of the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
BaseSet(String, Object) BaseSet(String, Object) BaseSet(String, Object) BaseSet(String, Object)

設定 NameObjectCollectionBase 執行個體中具有指定索引鍵之第一個項目的值 (如果有找到),否則將具有指定索引鍵和值的項目加入 NameObjectCollectionBase 執行個體。Sets the value of the first entry with the specified key in the NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
Clear() Clear() Clear() Clear()

使快取陣列失效,並移除 NameValueCollection 中的所有項目。Invalidates the cached arrays and removes all entries from the NameValueCollection.

(Inherited from NameValueCollection)
CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 NameValueCollection 複製到相容的一維 ArrayCopies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from NameValueCollection)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
Get(Int32) Get(Int32) Get(Int32) Get(Int32)

取得組合成一個逗號分隔清單的 NameValueCollection 的指定索引值。Gets the values at the specified index of the NameValueCollection combined into one comma-separated list.

(Inherited from NameValueCollection)
Get(String) Get(String) Get(String) Get(String)

根據名稱傳回個別的用戶端憑證欄位。Returns individual client certificate fields by name.

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

傳回在 NameObjectCollectionBase 中逐一查看的列舉值。Returns an enumerator that iterates through the NameObjectCollectionBase.

(Inherited from NameObjectCollectionBase)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetKey(Int32) GetKey(Int32) GetKey(Int32) GetKey(Int32)

取得 NameValueCollection 的指定索引的索引鍵。Gets the key at the specified index of the NameValueCollection.

(Inherited from NameValueCollection)
GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

實作 ISerializable 介面,並傳回序列化 NameObjectCollectionBase 執行個體所需的資料。Implements the ISerializable interface and returns the data needed to serialize the NameObjectCollectionBase instance.

(Inherited from NameObjectCollectionBase)
GetType() GetType() GetType() GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(Inherited from Object)
GetValues(Int32) GetValues(Int32) GetValues(Int32) GetValues(Int32)

取得 NameValueCollection 的指定索引的值。Gets the values at the specified index of the NameValueCollection.

(Inherited from NameValueCollection)
GetValues(String) GetValues(String) GetValues(String) GetValues(String)

NameValueCollection 取得與指定索引鍵關聯的值。Gets the values associated with the specified key from the NameValueCollection.

(Inherited from NameValueCollection)
HasKeys() HasKeys() HasKeys() HasKeys()

取得值,指出 NameValueCollection 是否包含非 null 的索引鍵。Gets a value indicating whether the NameValueCollection contains keys that are not null.

(Inherited from NameValueCollection)
InvalidateCachedArrays() InvalidateCachedArrays() InvalidateCachedArrays() InvalidateCachedArrays()

將集合的快取陣列重設為 nullResets the cached arrays of the collection to null.

(Inherited from NameValueCollection)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

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

(Inherited from Object)
OnDeserialization(Object) OnDeserialization(Object) OnDeserialization(Object) OnDeserialization(Object)

實作 ISerializable 介面,並於還原序列化完成時引發還原序列化事件。Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.

(Inherited from NameObjectCollectionBase)
Remove(String) Remove(String) Remove(String) Remove(String)

將具有指定索引鍵的項目從 NameObjectCollectionBase 中移除。Removes the entries with the specified key from the NameObjectCollectionBase instance.

(Inherited from NameValueCollection)
Set(String, String) Set(String, String) Set(String, String) Set(String, String)

設定 NameValueCollection 中項目的值。Sets the value of an entry in the NameValueCollection.

(Inherited from NameValueCollection)
ToString() ToString() ToString() ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(Inherited from Object)

明確介面實作

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

從目標陣列的指定索引開始,將整個 NameObjectCollectionBase 複製到相容的一維 ArrayCopies the entire NameObjectCollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(Inherited from NameObjectCollectionBase)

Extension Methods

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)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於