SOLIDWORKS PDM Professional API Help Send Feedback
GetStatePermissions Method (IEdmUserMgr9)
See Also 
EPDM.Interop.epdm Namespace > IEdmUserMgr9 Interface : GetStatePermissions Method (IEdmUserMgr9)


lOwnerID
ID of the user or group for which to get permissions; 0 to return permissions for all users and groups
meOwnerType
Type of lOwnerID as defined in EdmObjectType; valid only if lOwnerID is not 0
lStateID
ID of state for which to get permissions; 0 to return permissions for all states
ppoPermissions
Array of EdmStatePermission structures; one structure for each permission assignment
Gets the state permissions for the specified owner and state.

Syntax

Visual Basic 
Sub GetStatePermissions( _
   ByVal lOwnerID As System.Integer, _
   ByVal meOwnerType As EdmObjectType, _
   ByVal lStateID As System.Integer, _
   ByRef ppoPermissions() As EdmStatePermission _
) 
C# 
void GetStatePermissions( 
   System.int lOwnerID,
   EdmObjectType meOwnerType,
   System.int lStateID,
   out EdmStatePermission[] ppoPermissions
)
C++/CLI 
void GetStatePermissions( 
&   System.int lOwnerID,
&   EdmObjectType meOwnerType,
&   System.int lStateID,
&   [Out] array<EdmStatePermission>^ ppoPermissions
) 

Parameters

lOwnerID
ID of the user or group for which to get permissions; 0 to return permissions for all users and groups
meOwnerType
Type of lOwnerID as defined in EdmObjectType; valid only if lOwnerID is not 0
lStateID
ID of state for which to get permissions; 0 to return permissions for all states
ppoPermissions
Array of EdmStatePermission structures; one structure for each permission assignment

Example

See the IEdmUserMgr9 examples.

Remarks

Return codes: 

  • S_OK: The method successfully executed.
 

See Also

Availability

SOLIDWORKS PDM Professional 2017