CanEncrypt Property
Collapse the table of content
Expand the table of content

CryptoProvider.CanEncrypt Property


Gets a value that indicates whether the user has rights to encrypt.

Namespace:   System.Security.RightsManagement
Assembly:  WindowsBase (in WindowsBase.dll)

public bool CanEncrypt { get; }

Property Value

Type: System.Boolean

true if the UseLicense grants the user rights to encrypt; otherwise, false.

CanDecrypt returns true if the UseLicense bound to this CryptoProvider grants the user write access rights such as Edit or Owner.

.NET Framework
Available since 3.0
Return to top
© 2016 Microsoft