Document
Protect Method (ProtectionType, String)
|
Protects the document.
Namespace:
Spire.Doc
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
public void Protect(
ProtectionType type,
string password
)
Public Sub Protect (
type As ProtectionType,
password As String
)
public:
virtual void Protect(
ProtectionType type,
String^ password
) sealed
abstract Protect :
type : ProtectionType *
password : string -> unit
override Protect :
type : ProtectionType *
password : string -> unit
Parameters
-
type
-
Type:
Spire.Doc
ProtectionType
The type of the protection
-
password
-
Type:
System
String
The password used for protection.
Implements
IDocument
Protect(ProtectionType, String)
See Also