RSACryptoServiceProvider.PublicOnly 属性

定义

获取一个值,该值指示 RSACryptoServiceProvider 对象是否仅包含公钥。

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

属性值

Boolean

如果 RSACryptoServiceProvider 对象仅包含公钥,则为 true;否则为 false

属性

注解

RSACryptoServiceProvider该类只能使用公钥或公钥和私钥进行初始化。 PublicOnly使用属性确定当前实例是否仅包含公钥或公钥和私钥。

适用于

另请参阅