X509CertificateCollection.Item[Int32] 属性

定义

获取或设置当前 X509CertificateCollection 的指定索引处的条目。

public:
 property System::Security::Cryptography::X509Certificates::X509Certificate ^ default[int] { System::Security::Cryptography::X509Certificates::X509Certificate ^ get(int index); void set(int index, System::Security::Cryptography::X509Certificates::X509Certificate ^ value); };
public System.Security.Cryptography.X509Certificates.X509Certificate this[int index] { get; set; }
member this.Item(int) : System.Security.Cryptography.X509Certificates.X509Certificate with get, set
Default Public Property Item(index As Integer) As X509Certificate

参数

index
Int32

要在当前 X509CertificateCollection 中定位的条目的以零为基准的索引。

属性值

位于当前 X509CertificateCollection 的指定索引的 X509Certificate

例外

index 参数超出集合的有效索引范围。

适用于