PublicOnly Property
Collapse the table of content
Expand the table of content

RSACryptoServiceProvider.PublicOnly Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

Show:
© 2018 Microsoft