SubscriptionExtensions.GetTenantPolicy(TenantResource) Method

Definition

Gets an object representing a TenantPolicyResource along with the instance operations that can be performed on it in the TenantResource. MockingTo mock this method, please mock GetTenantPolicy() instead.

public static Azure.ResourceManager.Subscription.TenantPolicyResource GetTenantPolicy (this Azure.ResourceManager.Resources.TenantResource tenantResource);
static member GetTenantPolicy : Azure.ResourceManager.Resources.TenantResource -> Azure.ResourceManager.Subscription.TenantPolicyResource
<Extension()>
Public Function GetTenantPolicy (tenantResource As TenantResource) As TenantPolicyResource

Parameters

tenantResource
TenantResource

The TenantResource instance the method will execute against.

Returns

Returns a TenantPolicyResource object.

Exceptions

tenantResource is null.

Applies to