| Visual Basic | |
|---|---|
Function HasRightsEx( _ ByVal lRights As System.Integer, _ Optional ByVal lFileID As System.Integer _ ) As System.Boolean | |
Parameters
- lRights
- Combination of EdmRightFlags bits
- lFileID
- Optional ID of file on which to check lRights; 0 or null to check lRights on this folder only
Return Value
True if the user has all of the specified permissions, false if the user is missing one or more of the specified permissionsThis method takes into account both the rights set explicitly on the user and those inherited from groups of which the user is a member. Optionally, you can specify the ID of a file for which to check rights. In that case, the rights-check includes workflow rights set on the current status of the file. If no file ID is specified, or it is 0, the rights-check is performed only on this folder.
Note: This method is only available in SOLIDWORKS PDM Professional Version 5.3 and later. If the program must have backward compatibility with SOLIDWORKS PDM Professional 5.2, use IEdmFolder5::HasRights instead.
- S_OK: The method successfully executed.
- S_FALSE: The user lacks one or more of the specified rights.
SOLIDWORKS PDM Professional Version 5.3