共用方式為


RoleAssignmentImpl.IWithScope.WithResourceScope(IResource) Method

Definition

Specifies the scope of the role assignment to be a specific resource.

Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithCreate IWithScope.WithResourceScope (Microsoft.Azure.Management.ResourceManager.Fluent.Core.IResource resource);
abstract member Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithScope.WithResourceScope : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IResource -> Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithCreate
override this.Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithScope.WithResourceScope : Microsoft.Azure.Management.ResourceManager.Fluent.Core.IResource -> Microsoft.Azure.Management.Graph.RBAC.Fluent.RoleAssignment.Definition.IWithCreate
Function WithResourceScope (resource As IResource) As IWithCreate Implements IWithScope.WithResourceScope

Parameters

resource
IResource

The resource the assignee is assigned to access.

Returns

Implements

Applies to