Hide Table of Contents
HasRightsEx Method (IEdmFolder5)

Gets whether the user has the specified rights for the specified file in this folder.

Syntax

Visual Basic (Declaration) 
Function HasRightsEx( _
   ByVal lRights As System.Integer, _
   Optional ByVal lFileID As System.Integer _
) As System.Boolean
C# 
System.bool HasRightsEx( 
   System.int lRights,
   System.int lFileID
)
C++/CLI 
System.bool HasRightsEx( 
&   System.int lRights,
&   System.int lFileID
) 

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 permissions

Example

Remarks

This 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.

Return codes:

  • S_OK: The method successfully executed.
  • S_FALSE: The user lacks one or more of the specified rights.
 

See Also

Availability

SOLIDWORKS PDM Professional Version 5.3


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   HasRightsEx Method (IEdmFolder5)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.