ExcelGetWorkbookProtection Method
In This Topic
Excels the get workbook protection.
Syntax
'Declaration
Function ExcelGetWorkbookProtection( _
ByRef () As Byte, _
ByRef () As Byte, _
ByRef As Boolean, _
ByRef As Boolean, _
ByRef As Boolean _
) As Boolean
'Usage
Dim instance As IProtectionSupport
Dim workbookPassword() As Byte
Dim revisionsPassword() As Byte
Dim lockStructure As Boolean
Dim lockWindows As Boolean
Dim lockRevision As Boolean
Dim value As Boolean
value = instance.ExcelGetWorkbookProtection(workbookPassword, revisionsPassword, lockStructure, lockWindows, lockRevision)
bool ExcelGetWorkbookProtection(
ref byte[] ,
ref byte[] ,
ref bool ,
ref bool ,
ref bool
)
Parameters
- workbookPassword
- The workbook password.
- revisionsPassword
- The revisions password.
- lockStructure
- if set to
true
[lock structure]. - lockWindows
- if set to
true
[lock windows]. - lockRevision
- if set to
true
[lock revision].
See Also