<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
GetFolderPermissions Method (IEdmUserMgr7)
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 > IEdmUserMgr7 Interface : GetFolderPermissions Method (IEdmUserMgr7)

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

lFolderID
  ID of folder for which to get permissions

lEdmGetPermFlags
  Combination of EdmGetPermFlag bits (see Remarks)

ppoPermissions
  Array of EdmFolderPermission structures; one structure for each permission

Gets the permissions set on the specified folder for the specified user or group.

# Syntax

Visual Basic |
--- | ---

    Sub GetFolderPermissions( _
       ByVal lOwnerID As System.Integer, _
       ByVal meOwnerType As EdmObjectType, _
       ByVal lFolderID As System.Integer, _
       ByVal lEdmGetPermFlags As System.Integer, _
       ByRef ppoPermissions() As EdmFolderPermission _
    )

C# |
--- | ---

    void GetFolderPermissions(
       System.int lOwnerID,
       EdmObjectType meOwnerType,
       System.int lFolderID,
       System.int lEdmGetPermFlags,
       out EdmFolderPermission[] ppoPermissions
    )

C++/CLI |
--- | ---

    void GetFolderPermissions(
    &   System.int lOwnerID,
    &   EdmObjectType meOwnerType,
    &   System.int lFolderID,
    &   System.int lEdmGetPermFlags,
    &   [Out] array<EdmFolderPermission>^ 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
lFolderID
  ID of folder for which to get permissions
lEdmGetPermFlags
  Combination of EdmGetPermFlag bits (see Remarks)
ppoPermissions
  Array of EdmFolderPermission structures; one structure for each permission

# Example

See the IEdmUserMgr7 examples.

# Remarks

This method returns not only permissions explicitly set on a folder, but also permissions inherited from parent folders, depending on the combination of EdmGetPermFlag bits in lEdmGetPermFlags.

Return codes:

- S_OK: The method successfully executed.

# See Also

####

IEdmUserMgr7 Interface
IEdmUserMgr7 Members

# Availability

SOLIDWORKS PDM Professional 2010