Add a new Binary as latest version.

Namespace: Cartella.Interfaces
Assembly: AssetManagementSystem (in AssetManagementSystem.dll) Version: 4.1.0.171 (4.1.0.171)

Syntax

C#
IAssetBinary AddVersion(
	Stream file,
	Dictionary<string, string> additionalProps
)
Visual Basic
Function AddVersion ( _
	file As Stream, _
	additionalProps As Dictionary(Of String, String) _
) As IAssetBinary
Visual C++
IAssetBinary^ AddVersion(
	Stream^ file, 
	Dictionary<String^, String^>^ additionalProps
)

Parameters

file
Type: System.IO..::..Stream
File Stream used to create the new version AssetBinary; cannot be null
additionalProps
Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
Additional metadata collection to be set on AssetBinary

Return Value

Created AssetBinary from the Stream, also the latest version of this AssetMember

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptionThrown if "file" parameter is null value
System..::..InvalidOperationExceptionThrown if current AssetMember is marked as deleted
System..::..ArgumentExceptionThrown if current AssetMember object doesn't have AssetManager reference
System..::..MemberAccessExceptionThrown if database procedure not present

See Also