IAttributeFactory Interface
A factory to create attributes.
public interface IAttributeFactoryMethods
Section titled “Methods”IAttributeFactory.Create(string, string, IAttributeTypeReference) Method
Section titled “IAttributeFactory.Create(string, string, IAttributeTypeReference) Method”Creates an attribute with the given name, description and type.
HAKOM.TSM.Net.Api.Attributes.IAttribute Create(string name, string? description, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeTypeReference type);Parameters
Section titled “Parameters”name System.String
The System.String name of the new attribute.
description System.String
The System.String description of the new attribute.
The reference referring the IAttributeType of the new attribute.
Returns
Section titled “Returns”IAttribute
A new IAttribute.
IAttributeFactory.TryCreate(string, string, IAttributeTypeReference) Method
Section titled “IAttributeFactory.TryCreate(string, string, IAttributeTypeReference) Method”Attempts to create an attribute with the given name, description and type.
HAKOM.ErrorHandling.Core.Net.Api.Result<HAKOM.TSM.Net.Api.Attributes.IAttribute> TryCreate(string name, string? description, HAKOM.TSM.Net.Api.Attributes.Persistence.References.IAttributeTypeReference type);Parameters
Section titled “Parameters”name System.String
The System.String name of the new attribute.
description System.String
The System.String description of the new attribute.
The reference referring the IAttributeType of the new attribute.
Returns
Section titled “Returns”HAKOM.ErrorHandling.Core.Net.Api.Result<IAttribute>
A System.Threading.Tasks.Task<> of Result<TValue> containing the created IAttribute.
Remarks
Section titled “Remarks”The Result will provide additional information about success or failure.