Method AddUserDefinedAttributeRepositoryItemAsync

AddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition?, string?, CancellationToken)

Adds an item to the repository of the user defined attributes

Declaration
Task<IUserDefinedTextAttribute?> AddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition? attributeDefinition, string? text, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IAttributeDefinition attributeDefinition

The attribute definition

string text

The value of the new repository item

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IUserDefinedTextAttribute>

An IUserDefinedTextAttribute or null in case the given attribute definition doesn't allow to store the given text

AddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition?, FileStream?, CancellationToken)

Adds an embedded file item to the repository of the user defined attributes

Declaration
Task<IUserDefinedEmbeddedFileAttribute?> AddUserDefinedAttributeRepositoryItemAsync(IAttributeDefinition? attributeDefinition, FileStream? file, CancellationToken cancellationToken = default)
Parameters
Type Name Description
IAttributeDefinition attributeDefinition

The attribute definition

FileStream file

The FileStream

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IUserDefinedEmbeddedFileAttribute>

An IUserDefinedEmbeddedFileAttribute or null in case the given attribute definition doesn't allow to store a file

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.
Previous
Next