IHave |
Sets an user defined embedded file attribute
Namespace: TSD.API.Remoting.UserDefinedAttributes
Assembly: TSD.API.Remoting (in TSD.API.Remoting.dll) Version: 24.0.1.45+53a79b69d75fb81c51fcd389e0bdcf241e5b9f7c
Syntax
Task<IUserDefinedEmbeddedFileAttribute?> SetUserDefinedEmbeddedFileAttributeAsync( IAttributeDefinition? attributeDefinition, FileStream? file, CancellationToken cancellationToken = default )
Parameters
- attributeDefinition IAttributeDefinition
- The attribute definition
- file FileStream
- The FileStream
- cancellationToken CancellationToken (Optional)
- The optional cancellation token
Return Value
TaskIUserDefinedEmbeddedFileAttributeAn IUserDefinedEmbeddedFileAttribute interface or in case the given attribute definition doesn't allow to store a file
Remarks
Is recommended to add the file to the UDA repository using
AddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition, FileStream, CancellationToken)
first and then use SetUserDefinedAttributesAsync(IEnumerableIUserDefinedAttribute, CancellationToken) instead of this method
See Also