ServicePRO SDK Help

ManageObjectsServicesManager..::..GetAttachments Method

Gets the attachments by object identifier.

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

Syntax


public void GetAttachments(
	string sessionKey,
	int objectId,
	int objectTypeId,
	Action<ObservableCollection<stcAttachment>, Exception> callbackAction
)
Public Sub GetAttachments ( _
	sessionKey As String, _
	objectId As Integer, _
	objectTypeId As Integer, _
	callbackAction As Action(Of ObservableCollection(Of stcAttachment), Exception) _
)

Parameters

sessionKey
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.
objectId
Type: Int32
The object identifier.
objectTypeId
Type: Int32
The object type identifier.
callbackAction
Type: Action<(Of <(<'ObservableCollection<(Of <(<'stcAttachment>)>)>, Exception>)>)>
The callback action.