WriteProtection.CryptographicAlgorithmType 属性

定义

加密算法类型

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

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

属性值

返回 EnumValue<T>

属性

注解

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

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

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

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

cryptAlgorithmTypetypeAny属性值指定可能已将任何类型的算法用于密码。

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

适用于