Protects the document.

Namespace: Spire.Doc
Assembly: Spire.Doc (in Spire.Doc.dll) Version: 9.6.1.0 (9.6.1.3020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
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
ProtectionType
The type of the protection
password
String
The password used for protection.

Implements

IDocument..::..Protect(ProtectionType, String)

See Also