| 
Document
SetWriteProtection Method (String, Boolean)
  | 
 Sets the write protection for a document with an optional password and recommended read-only setting.
 Namespace:
 Spire.Doc
 Assembly:
Spire.Doc (in Spire.Doc.dll) Version: 13.2.3.0 (13.2.3.3046)
 Syntax
Syntax
 
 
public void SetWriteProtection(
	string password,
	bool recommended
)
 
Public Sub SetWriteProtection ( 
	password As String,
	recommended As Boolean
)
 
public:
void SetWriteProtection(
	String^ password, 
	bool recommended
)
 
member SetWriteProtection : 
password : string * 
recommended : bool -> unit 
 
 
 
Parameters
 
- 
password
 
- 
 Type:
 
System
String
 
 The password to set for write protection.
- 
recommended
 
- 
 Type:
 
System
Boolean
 
 Whether the read-only recommendation should be enabled (true) or disabled (false).
 
 See Also
See Also