Method SetUserDefinedAttributeAsync

SetUserDefinedAttributeAsync(IAttributeDefinition?, string?, CancellationToken)

Sets an user defined text attribute

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

The attribute definition

string text

The new value of the attribute

CancellationToken cancellationToken

The optional cancellation token

Returns
Type Description
Task<IUserDefinedTextAttribute>

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

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