Skip to content

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

string?

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()");
}

Released under the Apache License 2.0.