DocumentClass.Protect MethodÂ
This method supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim Type As WdProtectionType
Dim NoReset As Object
Dim Password As Object
Dim UseIRM As Object
Dim EnforceStyleLock As Object
Dim documentClass1 As DocumentClass
documentClass1.Protect(Type, NoReset, Password, UseIRM, EnforceStyleLock)
Syntax
Public Overridable Sub Protect( _
<InAttribute()> ByVal Type As WdProtectionType, _
<InAttribute()> Optional ByRef NoReset As Object, _
<InAttribute()> Optional ByRef Password As Object, _
<InAttribute()> Optional ByRef UseIRM As Object, _
<InAttribute()> Optional ByRef EnforceStyleLock As Object _
)
public virtual void Protect(
[In] WdProtectionType Type,
[In, Optional] ref object NoReset,
[In, Optional] ref object Password,
[In, Optional] ref object UseIRM,
[In, Optional] ref object EnforceStyleLock
);
public: Void Protect(
WdProtectionType^ Type,
&Object^ NoReset,
&Object^ Password,
&Object^ UseIRM,
&Object^ EnforceStyleLock
);
public void Protect(
/*in*/WdProtectionType Type,
/*in*/System.Object NoReset,
/*in*/System.Object Password,
/*in*/System.Object UseIRM,
/*in*/System.Object EnforceStyleLock
);
public function Protect(
Type : WdProtectionType,
NoReset : Object,
Password : Object,
UseIRM : Object,
EnforceStyleLock : Object
);
Parameters
- Type
This parameter is intended for internal use only.
- NoReset
This parameter is intended for internal use only.
- Password
This parameter is intended for internal use only.
- UseIRM
This parameter is intended for internal use only.
- EnforceStyleLock
This parameter is intended for internal use only.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
DocumentClass Class
Microsoft.Office.Interop.Word Namespace