_Workbook.HasPassword 属性

定义

如果指定工作簿有密码保护,则该属性值为 True。 只读 Boolean

public:
 property bool HasPassword { bool get(); };
public bool HasPassword { get; }
Public ReadOnly Property HasPassword As Boolean

属性值

注解

可以使用 方法将保护密码分配给工作簿 SaveAs(Object, Object, Object, Object, Object, Object, XlSaveAsAccessMode, Object, Object, Object, Object, Object)

适用于