Add a new member to the Asset's member collection.
Namespace: Cartella.InterfacesAssembly: AssetManagementSystem (in AssetManagementSystem.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
C# |
---|
IAssetMember AddMember( string memberName, string typeName, Stream file, string fileName, string extension, Dictionary<string, string> additionalProps ) |
Visual Basic |
---|
Function AddMember ( _ memberName As String, _ typeName As String, _ file As Stream, _ fileName As String, _ extension As String, _ additionalProps As Dictionary(Of String, String) _ ) As IAssetMember |
Visual C++ |
---|
IAssetMember^ AddMember( String^ memberName, String^ typeName, Stream^ file, String^ fileName, String^ extension, Dictionary<String^, String^>^ additionalProps ) |
Parameters
- memberName
- Type: System..::..String
- typeName
- Type: System..::..String
The type of asset to create (e.g. Image, Document, Video). Please note it is case sensitive. The available list of type names can be retrieved from the "AvailableTypeNames" property from Asset Manager. An invalid type name will cause a type exception to be thrown.
- file
- Type: System.IO..::..Stream
File Stream used to create binary for the member. This stream must be readable. Unreadable streams will cause exceptions.
- fileName
- Type: System..::..String
File name
- extension
- Type: System..::..String
File extension
- additionalProps
- Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
Binary-specific additional properties to be added on the binary
Return Value
Remarks
Calling this method will cause the Asset itself to increment its version number.