mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-12-02 03:38:01 +08:00
24 lines
689 B
C#
24 lines
689 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PluginInterface
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = false)]
|
|
public class MethodAttribute: Attribute
|
|
{
|
|
public string Name { get; }
|
|
public ProtectTypeEnum Protect_Type { get; }
|
|
public string Description { get; }
|
|
|
|
public MethodAttribute(string name, ProtectTypeEnum protect_Type = ProtectTypeEnum.ReadOnly, string description = "")
|
|
{
|
|
Name = name;
|
|
Protect_Type = protect_Type;
|
|
Description = description;
|
|
}
|
|
}
|
|
}
|