PublicOnly Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets a value that indicates whether the DSACryptoServiceProvider object contains only a public key.

Namespace:  System.Security.Cryptography
Assembly:  System.Security (in System.Security.dll)

member PublicOnly : bool

Property Value

Type: System..::..Boolean
true if the DSACryptoServiceProvider object contains only a public key; otherwise, false.

The DSACryptoServiceProvider class can be initialized either with a public key only or with both a public and private key. Use the PublicOnly property to determine whether the current instance contains only a public key or both a public and private key.

Show: