Udostępnij za pośrednictwem


WriteProtection.CryptographicProvider Property

Definition

Cryptographic Provider

Represents the following attribute in the schema: w:cryptProvider

[DocumentFormat.OpenXml.SchemaAttr(23, "cryptProvider")]
public DocumentFormat.OpenXml.StringValue CryptographicProvider { get; set; }
public DocumentFormat.OpenXml.StringValue CryptographicProvider { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "cryptProvider")]
public DocumentFormat.OpenXml.StringValue? CryptographicProvider { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:cryptProvider")]
public DocumentFormat.OpenXml.StringValue? CryptographicProvider { get; set; }
public DocumentFormat.OpenXml.StringValue? CryptographicProvider { get; set; }
member this.CryptographicProvider : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "cryptProvider")>]
member this.CryptographicProvider : DocumentFormat.OpenXml.StringValue with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:cryptProvider")>]
member this.CryptographicProvider : DocumentFormat.OpenXml.StringValue with get, set
Public Property CryptographicProvider As StringValue

Property Value

Returns StringValue.

Attributes

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.

Applies to