你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Operation 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Operation() |
初始化 Operation 类的新实例。 |
Operation(String, Nullable<Boolean>, OperationDisplay, String, String) |
初始化 Operation 类的新实例。 |
Operation()
初始化 Operation 类的新实例。
public Operation ();
Public Sub New ()
适用于
Operation(String, Nullable<Boolean>, OperationDisplay, String, String)
初始化 Operation 类的新实例。
public Operation (string name = default, bool? isDataAction = default, Microsoft.Azure.Management.Chaos.Models.OperationDisplay display = default, string origin = default, string actionType = default);
new Microsoft.Azure.Management.Chaos.Models.Operation : string * Nullable<bool> * Microsoft.Azure.Management.Chaos.Models.OperationDisplay * string * string -> Microsoft.Azure.Management.Chaos.Models.Operation
Public Sub New (Optional name As String = Nothing, Optional isDataAction As Nullable(Of Boolean) = Nothing, Optional display As OperationDisplay = Nothing, Optional origin As String = Nothing, Optional actionType As String = Nothing)
参数
- name
- String
操作的名称,根据 Resource-Based 访问控制 (RBAC) 。 示例:“Microsoft.Compute/virtualMachines/write”、“Microsoft.Compute/virtualMachines/capture/action”
- display
- OperationDisplay
此特定操作的本地化显示信息。
- origin
- String
操作的预期执行程序;如 在基于资源的 访问控制 (RBAC) 和审核日志 UX。 默认值为“user,system”。 可能的值包括:“user”、“system”、“user、system”
- actionType
- String
枚举。 指示操作类型。 “内部”是指仅限内部 API 的操作。 可能的值包括:“Internal”