Язык

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>

Атрибуты

Комментарии

Следующие сведения из Международного Standard ECMA-376 могут быть полезны при работе с этим классом.

Указывает класс криптографического алгоритма, используемого этой защитой. Начальная версия Office Open XML Standard поддерживает только одну версию, hash но будущие версии могут расширить ее по мере необходимости.

Рассмотрим документ WordprocessingML со следующими сведениями, хранящимися в одном из его элементов защиты:

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

Значение cryptAlgorithmClass атрибута hash указывает, что алгоритм, используемый для пароля, является алгоритмом хэширования.

Возможные значения для этого атрибута определяются простым типом ST_AlgClass .

Применяется к