ApiSessionChangeAsset Method |
Schedules an re-import of an asset from a new filename (Change asset source).
The methods returns immediately. It just enqueues an job that is processing in the background.
Use
WaitForAssetProcessing(WaitForAssetProcessingArgs) when you need the job(s) to be completed before proceeding
Namespace:
Articy.Api
Assembly:
ArticyApp (in ArticyApp.dll) Version: 1.0.0
Syntax public void ChangeAsset(
ObjectProxy aAsset,
string aFullFilename
)
Parameters
- aAsset
- Type: Articy.ApiObjectProxy
an object proxy whose type is 'Asset' - aFullFilename
- Type: SystemString
the full filename of the new asset data to be used
Exceptions Exception | Condition |
---|
ArticyApiException | ErrorCode.AssetObjectExpected when aAsset is either null or not an asset |
ArticyApiException | ErrorCode.WriteDenied when aAsset is not currently claimed |
ArticyApiException | ErrorCode.AssetFileNotFound when the file specified in the property 'OriginalSource' does not exist. |
See Also