<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
GetStatePermissions Method (IEdmUserMgr9)
See Also

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmUserMgr9 Interface : GetStatePermissions Method (IEdmUserMgr9)

Visual Basic
C#
C++/CLI

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

####

IEdmUserMgr9 Interface
IEdmUserMgr9 Members
IEdmUserMgr9::SetStatePermissions Method ()

# Availability

SOLIDWORKS PDM Professional 2017