WriteProtection.CryptographicProvider Property
Cryptographic Provider.Represents the attribte in schema: w:cryptProvider
Namespace: DocumentFormat.OpenXml.Wordprocessing
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
Syntax
'Declaration
<SchemaAttrAttribute(, "cryptProvider")> _
Public Property CryptographicProvider As StringValue
Get
Set
'Usage
Dim instance As WriteProtection
Dim value As StringValue
value = instance.CryptographicProvider
instance.CryptographicProvider = value
[SchemaAttrAttribute(, "cryptProvider")]
public StringValue CryptographicProvider { get; set; }
Property Value
Type: DocumentFormat.OpenXml.StringValue
Returns StringValue.
Remarks
The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.
Specifies the cryptographic provider which was used to generate the hash value stored in this document. If the user provided a cryptographic provider which was not the system's built-in provider, then that provider shall be stored here so it can subsequently be used if available.
If this attribute is omitted, then the built-in cryptographic provider on the system shall be used.
Consider a WordprocessingML document with the following information stored in one of its protection elements:
<w:… w:cryptProvider="Samantha'sProvider"
w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" />
The cryptProvider attribute value of Samantha'sProvider specifies that the cryptographic provider with name Samantha's Provider shall be used if available.
The possible values for this attribute are defined by the ST_String simple type.