RSACryptoServiceProvider.PublicOnly Property

 

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

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

[ComVisibleAttribute(false)]
public bool PublicOnly { get; }

Property Value

Type: System.Boolean

true if the RSACryptoServiceProvider object contains only a public key; otherwise, false.

The RSACryptoServiceProvider 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
Windows Phone Silverlight
Available since 7.1
Return to top
Show: