_Document.PasswordEncryptionKeyLength 属性

定义

返回一个整数,表示在使用密码加密文档时,Microsoft Word 使用的算法的密钥长度。Returns an Integer indicating the key length of the algorithm Microsoft Word uses when encrypting documents with passwords.

public:
 property int PasswordEncryptionKeyLength { int get(); };
public int PasswordEncryptionKeyLength { get; }
member this.PasswordEncryptionKeyLength : int
Public ReadOnly Property PasswordEncryptionKeyLength As Integer

属性值

Int32

注解

使用 SetPasswordEncryptionOptions(String, String, Int32, Object) 方法指定 Word 在用密码对文档加密时使用的密钥长度。Use the SetPasswordEncryptionOptions(String, String, Int32, Object) method to specify the key length Word uses when encrypting documents with passwords.

适用于