你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AuthorizationClient.RemoveRoleDefinition Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RemoveRoleDefinition(FilterRoleDefinitionOptions) | |
RemoveRoleDefinition(Guid, String) |
Deletes a role definition based on the id. |
RemoveRoleDefinition(String, String) |
Deletes a role definition based on the name. |
RemoveRoleDefinition(FilterRoleDefinitionOptions)
public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition RemoveRoleDefinition (Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleDefinitionOptions options);
member this.RemoveRoleDefinition : Microsoft.Azure.Commands.Resources.Models.Authorization.FilterRoleDefinitionOptions -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition
Public Function RemoveRoleDefinition (options As FilterRoleDefinitionOptions) As PSRoleDefinition
Parameters
- options
- FilterRoleDefinitionOptions
Returns
Applies to
RemoveRoleDefinition(Guid, String)
Deletes a role definition based on the id.
public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition RemoveRoleDefinition (Guid roleDefinitionId, string scope);
member this.RemoveRoleDefinition : Guid * string -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition
Public Function RemoveRoleDefinition (roleDefinitionId As Guid, scope As String) As PSRoleDefinition
Parameters
- roleDefinitionId
- Guid
The role definition id to delete
- scope
- String
The scope of the role definition
Returns
The deleted role definition.
Applies to
RemoveRoleDefinition(String, String)
Deletes a role definition based on the name.
public Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition RemoveRoleDefinition (string roleDefinitionName, string scope);
member this.RemoveRoleDefinition : string * string -> Microsoft.Azure.Commands.Resources.Models.Authorization.PSRoleDefinition
Public Function RemoveRoleDefinition (roleDefinitionName As String, scope As String) As PSRoleDefinition
Parameters
- roleDefinitionName
- String
The role definition name.
- scope
- String
The scope of the role definition
Returns
The deleted role definition.