DSACryptoServiceProvider.PublicOnly Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

<ComVisibleAttribute(False)>
Public ReadOnly Property PublicOnly As Boolean

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.

.NET Framework
Available since 2.0
Return to top
Show: