共用方式為


CertificateKeyUsages 類別

定義

表示憑證金鑰的使用方式。

public ref class CertificateKeyUsages sealed
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CertificateKeyUsages final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
class CertificateKeyUsages final
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class CertificateKeyUsages
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class CertificateKeyUsages
function CertificateKeyUsages()
Public NotInheritable Class CertificateKeyUsages
繼承
Object Platform::Object IInspectable CertificateKeyUsages
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

建構函式

CertificateKeyUsages()

建立 CertificateKeyUsages 類別的新實例。

屬性

CrlSign

取得或設定索引鍵是否為 cRLSign。

DataEncipherment

取得或設定索引鍵是否用於資料加密。

DigitalSignature

取得或設定金鑰是否用於數位簽章。

EncipherOnly

取得或設定金鑰是否只用于加密。

KeyAgreement

取得或設定索引鍵是否為金鑰合約。

KeyCertificateSign

取得或設定金鑰是否為金鑰憑證簽署。

KeyEncipherment

取得或設定金鑰是否用於金鑰加密。

NonRepudiation

取得或設定索引鍵是否用於不可否認性。

適用於