Add a new Binary as latest version.
Namespace: Cartella.InterfacesAssembly: 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 AssetMemberExceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | Thrown if "file" parameter is null value |
System..::..InvalidOperationException | Thrown if current AssetMember is marked as deleted |
System..::..ArgumentException | Thrown if current AssetMember object doesn't have AssetManager reference |
System..::..MemberAccessException | Thrown if database procedure not present |