Create a new Asset.

The typeName argument is case sensitive, and must be one of the types available from "AvailableTypeNames" proper in the AssetManager.

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

Syntax

C#
IAsset CreateAsset(
	string initialMemberName,
	string assetName,
	string typeName,
	Stream file,
	string fileName,
	string extension,
	Dictionary<string, string> additionalProps
)
Visual Basic
Function CreateAsset ( _
	initialMemberName As String, _
	assetName As String, _
	typeName As String, _
	file As Stream, _
	fileName As String, _
	extension As String, _
	additionalProps As Dictionary(Of String, String) _
) As IAsset
Visual C++
IAsset^ CreateAsset(
	String^ initialMemberName, 
	String^ assetName, 
	String^ typeName, 
	Stream^ file, 
	String^ fileName, 
	String^ extension, 
	Dictionary<String^, String^>^ additionalProps
)

Parameters

initialMemberName
Type: System..::..String
assetName
Type: System..::..String
Name of asset. Information only, not indexable, but searchable
typeName
Type: System..::..String
The type of asset to create (e.g. Image, Document, Video). Invalid type names will cause a type exception
file
Type: System.IO..::..Stream
Stream of file used to create binary for the member. This stream must be readable. Unreadable stream will cause exception
fileName
Type: System..::..String
File name for the first member
extension
Type: System..::..String
File Extension for the first member
additionalProps
Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
Binary-specific additional properties to be added on the first version of the first member

Return Value

Created Asset as IAsset

See Also