Property Name
Namespace: Belay.Attributes
Assembly: Belay.Attributes.dll
Name
Gets or sets the name of the method on the device. If not specified, the C# method name will be used.
csharp
public string? Name { get; set; }
Property Value
Examples
[Task(Name = "read_sensor")]
public async Task<float> ReadTemperatureAsync()
{
// This method will be deployed as "read_sensor" on the device
return await ExecuteAsync<float>("read_sensor()");
}