WriteProtection.CryptographicProviderType Property

Definition

Cryptographic Provider Type

Represents the following attribute in the schema: w:cryptProviderType

[DocumentFormat.OpenXml.SchemaAttr(23, "cryptProviderType")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues> CryptographicProviderType { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues> CryptographicProviderType { get; set; }
[DocumentFormat.OpenXml.SchemaAttr(23, "cryptProviderType")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues>? CryptographicProviderType { get; set; }
[DocumentFormat.OpenXml.SchemaAttr("w:cryptProviderType")]
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues>? CryptographicProviderType { get; set; }
public DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues>? CryptographicProviderType { get; set; }
member this.CryptographicProviderType : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr(23, "cryptProviderType")>]
member this.CryptographicProviderType : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues> with get, set
[<DocumentFormat.OpenXml.SchemaAttr("w:cryptProviderType")>]
member this.CryptographicProviderType : DocumentFormat.OpenXml.EnumValue<DocumentFormat.OpenXml.Wordprocessing.CryptProviderValues> with get, set
Public Property CryptographicProviderType As EnumValue(Of CryptProviderValues)

Property Value

Returns EnumValue<T>.

Attributes

Remarks

The following information from the ECMA International Standard ECMA-376 can be useful when working with this class.

Specifies the type of cryptographic provider to be used.

Consider a WordprocessingML document with the following information stored in one of its protection elements:

<w:… w:cryptProviderType="rsaAES"  
  w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" />  

The cryptProviderType attribute value of rsaAES specifies that the cryptographic provider type shall be an Advanced Encryption Standard provider.

The possible values for this attribute are defined by the ST_CryptProv simple type.

Applies to