IDocument
Protect Method (ProtectionType, String)
|
Protects the document.
Namespace:
Spire.Doc.Interface
Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
Syntax
void Protect(
ProtectionType type,
string password
)
Sub Protect (
type As ProtectionType,
password As String
)
void Protect(
ProtectionType type,
String^ password
)
abstract 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.
See Also