ServicePRO SDK Help

ManageObjectsServicesManager..::..SaveObjectAttachment Method

Saves object's attachments to database.

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

Syntax


public void SaveObjectAttachment(
	string sessionKey,
	ObservableCollection<stcAttachmentFolder> documentFolders,
	ObservableCollection<stcAttachment> documents,
	string documentFolderName,
	int documentObjectId,
	Action<bool, Exception> callbackAction
)
Public Sub SaveObjectAttachment ( _
	sessionKey As String, _
	documentFolders As ObservableCollection(Of stcAttachmentFolder), _
	documents As ObservableCollection(Of stcAttachment), _
	documentFolderName As String, _
	documentObjectId As Integer, _
	callbackAction As Action(Of Boolean, 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.
documentFolders
Type: ObservableCollection<(Of <(<'stcAttachmentFolder>)>)>
The collection of document's folders.
documents
Type: ObservableCollection<(Of <(<'stcAttachment>)>)>
The collection of documents.
documentFolderName
Type: String
Name of the document folder in ServicePRO.
documentObjectId
Type: Int32
The object's identifier.
callbackAction
Type: Action<(Of <(<'Boolean, Exception>)>)>
The callback action.