WriteProtection.CryptographicAlgorithmClass 属性

定义

加密算法类

表示架构中的以下属性:w:cryptAlgorithmClass

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

属性值

返回 EnumValue<T>

属性

注解

使用此类时,ECMA 国际标准 ECMA-376 中的以下信息可能很有用。

指定此保护使用的加密算法的类。 Office Open XML Standard 的初始版本仅支持单个版本 - hash 但将来的版本可能会根据需要扩展此版本。

请考虑 WordprocessingML 文档,其中一个保护元素中存储了以下信息:

<w:… w:cryptAlgorithmClass="hash"   
  w:cryptAlgorithmType="typeAny"   
  w:cryptAlgorithmSid="1"  
  w:hash="9oN7nWkCAyEZib1RomSJTjmPpCY=" />  

cryptAlgorithmClasshash属性值指定用于密码的算法是哈希算法。

此属性的可能值由 ST_AlgClass 简单类型定义。

适用于