| IManageUserDefinedAttributesAddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition, FileStream, CancellationToken) Method |
Adds an embedded file item to the repository of the user defined attributes
Namespace: TSD.API.Remoting.UserDefinedAttributesAssembly: TSD.API.Remoting (in TSD.API.Remoting.dll) Version: 23.1.0.154
Syntax Task<IUserDefinedEmbeddedFileAttribute?> AddUserDefinedAttributeRepositoryItemAsync(
IAttributeDefinition? attributeDefinition,
FileStream? file,
CancellationToken cancellationToken = default
)
Function AddUserDefinedAttributeRepositoryItemAsync (
attributeDefinition As IAttributeDefinition,
file As FileStream,
Optional cancellationToken As CancellationToken = Nothing
) As Task(Of IUserDefinedEmbeddedFileAttribute)
Task<IUserDefinedEmbeddedFileAttribute^>^ AddUserDefinedAttributeRepositoryItemAsync(
IAttributeDefinition^ attributeDefinition,
FileStream^ file,
CancellationToken cancellationToken = CancellationToken()
)
abstract AddUserDefinedAttributeRepositoryItemAsync :
attributeDefinition : IAttributeDefinition *
file : FileStream *
?cancellationToken : CancellationToken
(* Defaults:
let _cancellationToken = defaultArg cancellationToken new CancellationToken()
*)
-> Task<IUserDefinedEmbeddedFileAttribute>
Parameters
- attributeDefinition IAttributeDefinition
- The attribute definition
- file FileStream
- The FileStream
- cancellationToken CancellationToken (Optional)
- The optional cancellation token
Return Value
TaskIUserDefinedEmbeddedFileAttributeAn
IUserDefinedEmbeddedFileAttribute or
in case the given attribute definition doesn't allow to store a file
See Also