Поделиться через


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=" />  

Значение cryptAlgorithmType атрибута typeAny указывает, что для пароля может использоваться любой тип алгоритма.

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

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