Accusoft.PdfXpress7.Net
AddSecurity Method




The Security settings for the Document.
Adds Security to a Document that is not secure.
Syntax
'Declaration
 
Public Sub AddSecurity( _
   ByVal security As Security _
) 
'Usage
 
Dim instance As Document
Dim security As Security
 
instance.AddSecurity(security)
public void AddSecurity( 
   Security security
)
public: void AddSecurity( 
   Security* security
) 
public:
void AddSecurity( 
   Security^ security
) 

Parameters

security
The Security settings for the Document.
Exceptions
ExceptionDescription
System.ArgumentNullException The Security parameter is null.
PdfXpressExceptionThe Document already has Security. Security has already been removed and it must be saved first. In order to add Security to a Document, an Owner Password must be specified. A Permission specified as being allowed or not isn't applicable for the current EncryptMethod.
Remarks
Note: Once Security Settings have been added, the document should be immediately saved and disposed of before being opened again or before the saved document is opened.
See Also

Reference

Document Class
Document Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback