Compartilhar via


IWithScope.ForResource(IGenericResource) Método

Definição

Especifica o escopo de PolicyAssignment para ser um recurso.

public Microsoft.Azure.Management.ResourceManager.Fluent.PolicyAssignment.Definition.IWithPolicyDefinition ForResource (Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource genericResource);
abstract member ForResource : Microsoft.Azure.Management.ResourceManager.Fluent.IGenericResource -> Microsoft.Azure.Management.ResourceManager.Fluent.PolicyAssignment.Definition.IWithPolicyDefinition
Public Function ForResource (genericResource As IGenericResource) As IWithPolicyDefinition

Parâmetros

genericResource
IGenericResource

O recurso para atribuir a política.

Retornos

Aplica-se a