RSACryptoServiceProvider.PublicOnly Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets a value that indicates whether the RSACryptoServiceProvider object contains only a public key.
Namespace: System.Security.Cryptography
Assembly: mscorlib.Extensions (in mscorlib.Extensions.dll)
Syntax
'Declaration
<ComVisibleAttribute(False)> _
Public ReadOnly Property PublicOnly As Boolean
[ComVisibleAttribute(false)]
public bool PublicOnly { get; }
Property Value
Type: System.Boolean
true if the RSACryptoServiceProvider object contains only a public key; otherwise, false.
Remarks
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.
Version Information
Silverlight for Windows Phone
Supported in: Windows Phone OS 7.1
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
See Also