你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmSubscriptionModelFactory.TenantPolicyProperties 方法

定义

初始化 TenantPolicyProperties 的新实例。

public static Azure.ResourceManager.Subscription.Models.TenantPolicyProperties TenantPolicyProperties (string policyId = default, bool? blockSubscriptionsLeavingTenant = default, bool? blockSubscriptionsIntoTenant = default, System.Collections.Generic.IEnumerable<Guid> exemptedPrincipals = default);
static member TenantPolicyProperties : string * Nullable<bool> * Nullable<bool> * seq<Guid> -> Azure.ResourceManager.Subscription.Models.TenantPolicyProperties
Public Shared Function TenantPolicyProperties (Optional policyId As String = Nothing, Optional blockSubscriptionsLeavingTenant As Nullable(Of Boolean) = Nothing, Optional blockSubscriptionsIntoTenant As Nullable(Of Boolean) = Nothing, Optional exemptedPrincipals As IEnumerable(Of Guid) = Nothing) As TenantPolicyProperties

参数

policyId
String

策略 ID。

blockSubscriptionsLeavingTenant
Nullable<Boolean>

阻止从用户的租户中离开订阅。

blockSubscriptionsIntoTenant
Nullable<Boolean>

阻止将订阅输入到用户的租户中。

exemptedPrincipals
IEnumerable<Guid>

从用户租户的设置订阅租户策略中免除的用户 objectId 的列表。

返回

用于模拟的新 TenantPolicyProperties 实例。

适用于