DSACryptoServiceProvider.PublicOnly 屬性

定義

取得值,這個值表示 DSACryptoServiceProvider 物件是否只包含公開金鑰。

public:
 property bool PublicOnly { bool get(); };
public bool PublicOnly { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public bool PublicOnly { get; }
member this.PublicOnly : bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.PublicOnly : bool
Public ReadOnly Property PublicOnly As Boolean

屬性值

如果 DSACryptoServiceProvider 物件只包含公用金鑰則為 true,否則為 false

屬性

備註

DSACryptoServiceProvider類別只能使用公開金鑰或公開金鑰和私密金鑰來初始化。 PublicOnly使用 屬性來判斷目前的實例是否只包含公開金鑰或公開金鑰和私密金鑰。

適用於

另請參閱