Share via


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)

Syntax

'Declaration
Public ReadOnly Property PublicOnly As Boolean
public bool PublicOnly { get; }
public:
property bool PublicOnly {
    bool get ();
}
member PublicOnly : bool with get
function get PublicOnly () : boolean

Property Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

DSACryptoServiceProvider Class

System.Security.Cryptography Namespace