{CompanyName} FlexyGo

UserSecurityConfig..::..SetSecurity Method

Sets the security for given roles or users to diferent objects in the applicaion.

Namespace:  FLEXYGO.Security
Assembly:  flxSecurity (in flxSecurity.dll)

Syntax


public bool SetSecurity(
	string SecurityType,
	string SecurityKey,
	string SecurityKey2,
	string SecurityItem,
	string SecurityItemValue,
	string SecurityId
)
Public Function SetSecurity ( _
	SecurityType As String, _
	SecurityKey As String, _
	SecurityKey2 As String, _
	SecurityItem As String, _
	SecurityItemValue As String, _
	SecurityId As String _
) As Boolean

Parameters

SecurityType
Type: String
Type of the security.
SecurityKey
Type: String
The primary key.
SecurityKey2
Type: String
The Primary key second value.
SecurityItem
Type: String
The security item to be set (CanEdit, CanView, CanPrint...).
SecurityItemValue
Type: String
The security item value (true or false).
SecurityId
Type: String
The security User or Role identifier.

Return Value

True or false.

Exceptions


ExceptionCondition
Exception