DocumentClass.Protect Method
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Public Overridable Sub Protect ( _
Type As WdProtectionType, _
ByRef NoReset As Object, _
ByRef Password As Object, _
ByRef UseIRM As Object, _
ByRef EnforceStyleLock As Object _
)
'Usage
Dim instance As DocumentClass
Dim Type As WdProtectionType
Dim NoReset As Object
Dim Password As Object
Dim UseIRM As Object
Dim EnforceStyleLock As Object
instance.Protect(Type, NoReset, Password, _
UseIRM, EnforceStyleLock)
public virtual void Protect(
WdProtectionType Type,
ref Object NoReset,
ref Object Password,
ref Object UseIRM,
ref Object EnforceStyleLock
)
Parameters
- NoReset
Type: System.Object%
- Password
Type: System.Object%
- UseIRM
Type: System.Object%
- EnforceStyleLock
Type: System.Object%
Implements
_Document.Protect(WdProtectionType, Object%, Object%, Object%, Object%)