ServicePRO SDK Help

ManageObjectsServicesManager..::..SaveAsset Method

Saves the asset structure to database.

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

Syntax


public void SaveAsset(
	string sessionKey,
	List<stcAsset> sAsset,
	string assetName,
	List<stcUDFParamsIndexed> theUDFValues,
	Action<stcServiceResult, Exception> callbackAction
)
Public Sub SaveAsset ( _
	sessionKey As String, _
	sAsset As List(Of stcAsset), _
	assetName As String, _
	theUDFValues As List(Of stcUDFParamsIndexed), _
	callbackAction As Action(Of stcServiceResult, 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.
sAsset
Type: List<(Of <(<'stcAsset>)>)>
Asset collection.
assetName
Type: String
Name of the asset.
theUDFValues
Type: List<(Of <(<'stcUDFParamsIndexed>)>)>
Collection of user defined values.
callbackAction
Type: Action<(Of <(<'stcServiceResult, Exception>)>)>
The callback action.