ServicePRO SDK Help

RequestServicesManager..::..GetProjectHierarchy Method

Gets the project hierarchy data.

Namespace:  ServicePRO.Sdk.Windows.Managers
Assembly:  ServicePRO.Sdk.Windows (in ServicePRO.Sdk.Windows.dll)

Syntax


public void GetProjectHierarchy(
	string userSessionKey,
	int requestId,
	int hierarchyType,
	Action<bool, ObservableCollection<HierarchyItem>, HierarchyItem, Exception> callback
)
Public Sub GetProjectHierarchy ( _
	userSessionKey As String, _
	requestId As Integer, _
	hierarchyType As Integer, _
	callback As Action(Of Boolean, ObservableCollection(Of HierarchyItem), HierarchyItem, Exception) _
)

Parameters

userSessionKey
Type: String
User’s Session Key.
Key property of the User Session Object of type stcSession.
The User Session has to be established by making a call to InitializeSystemAndSession() method in CoreServicesManager class as a first step with using ServicePRO SDK.
requestId
Type: Int32
The request identifier.
hierarchyType
Type: Int32
Type of the hierarchy.
callback
Type: Action<(Of <(<'Boolean, ObservableCollection<(Of <(<'HierarchyItem>)>)>, HierarchyItem, Exception>)>)>
The callback action.