Logically ORs flag and mask and return result.

Namespace: Spire.Pdf.Security
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
[ObsoleteAttribute("This method may be removed in the future.To set permissions, please call the method' Encrypt(...)'")]
public PdfPermissionsFlags SetPermissions(
	PdfPermissionsFlags flags
)
<ObsoleteAttribute("This method may be removed in the future.To set permissions, please call the method' Encrypt(...)'")> 
Public Function SetPermissions ( 
	flags As PdfPermissionsFlags
) As PdfPermissionsFlags
public:
[ObsoleteAttribute(L"This method may be removed in the future.To set permissions, please call the method' Encrypt(...)'")]
PdfPermissionsFlags SetPermissions(
	PdfPermissionsFlags flags
)
[<ObsoleteAttribute("This method may be removed in the future.To set permissions, please call the method' Encrypt(...)'")>]
member SetPermissions : 
        flags : PdfPermissionsFlags -> PdfPermissionsFlags 

Parameters

flags
PdfPermissionsFlags
The mask of set bit that should be set in the result.

Return Value

PdfPermissionsFlags
The ORed value of flag and mask.

See Also