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

ServicePrincipal 构造函数

定义

重载

ServicePrincipal()

初始化 ServicePrincipal 类的新实例。

ServicePrincipal(IDictionary<String,Object>, String, Nullable<DateTime>, String, IList<String>, String, String, String, Nullable<Boolean>, IList<AppRole>, String, String, String, IList<KeyCredential>, String, IList<OAuth2Permission>, IList<PasswordCredential>, String, String, IList<String>, String, IList<String>, String, IList<String>)

初始化 ServicePrincipal 类的新实例。

ServicePrincipal()

初始化 ServicePrincipal 类的新实例。

public ServicePrincipal ();
Public Sub New ()

适用于

ServicePrincipal(IDictionary<String,Object>, String, Nullable<DateTime>, String, IList<String>, String, String, String, Nullable<Boolean>, IList<AppRole>, String, String, String, IList<KeyCredential>, String, IList<OAuth2Permission>, IList<PasswordCredential>, String, String, IList<String>, String, IList<String>, String, IList<String>)

初始化 ServicePrincipal 类的新实例。

public ServicePrincipal (System.Collections.Generic.IDictionary<string,object> additionalProperties = default, string objectId = default, DateTime? deletionTimestamp = default, string accountEnabled = default, System.Collections.Generic.IList<string> alternativeNames = default, string appDisplayName = default, string appId = default, string appOwnerTenantId = default, bool? appRoleAssignmentRequired = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.AppRole> appRoles = default, string displayName = default, string errorUrl = default, string homepage = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> keyCredentials = default, string logoutUrl = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission> oauth2Permissions = default, System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> passwordCredentials = default, string preferredTokenSigningKeyThumbprint = default, string publisherName = default, System.Collections.Generic.IList<string> replyUrls = default, string samlMetadataUrl = default, System.Collections.Generic.IList<string> servicePrincipalNames = default, string servicePrincipalType = default, System.Collections.Generic.IList<string> tags = default);
new Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal : System.Collections.Generic.IDictionary<string, obj> * string * Nullable<DateTime> * string * System.Collections.Generic.IList<string> * string * string * string * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.AppRole> * string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.KeyCredential> * string * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission> * System.Collections.Generic.IList<Microsoft.Azure.Graph.RBAC.Models.PasswordCredential> * string * string * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IList<string> * string * System.Collections.Generic.IList<string> -> Microsoft.Azure.Graph.RBAC.Models.ServicePrincipal
Public Sub New (Optional additionalProperties As IDictionary(Of String, Object) = Nothing, Optional objectId As String = Nothing, Optional deletionTimestamp As Nullable(Of DateTime) = Nothing, Optional accountEnabled As String = Nothing, Optional alternativeNames As IList(Of String) = Nothing, Optional appDisplayName As String = Nothing, Optional appId As String = Nothing, Optional appOwnerTenantId As String = Nothing, Optional appRoleAssignmentRequired As Nullable(Of Boolean) = Nothing, Optional appRoles As IList(Of AppRole) = Nothing, Optional displayName As String = Nothing, Optional errorUrl As String = Nothing, Optional homepage As String = Nothing, Optional keyCredentials As IList(Of KeyCredential) = Nothing, Optional logoutUrl As String = Nothing, Optional oauth2Permissions As IList(Of OAuth2Permission) = Nothing, Optional passwordCredentials As IList(Of PasswordCredential) = Nothing, Optional preferredTokenSigningKeyThumbprint As String = Nothing, Optional publisherName As String = Nothing, Optional replyUrls As IList(Of String) = Nothing, Optional samlMetadataUrl As String = Nothing, Optional servicePrincipalNames As IList(Of String) = Nothing, Optional servicePrincipalType As String = Nothing, Optional tags As IList(Of String) = Nothing)

参数

additionalProperties
IDictionary<String,Object>

此集合反序列化消息中的不匹配属性

objectId
String

对象 ID。

deletionTimestamp
Nullable<DateTime>

删除目录对象的时间。

accountEnabled
String

是否启用了服务主体帐户

alternativeNames
IList<String>

备用名称

appDisplayName
String

关联的应用程序公开的显示名称。

appId
String

应用程序 ID。

appOwnerTenantId
String
appRoleAssignmentRequired
Nullable<Boolean>

指定在 Azure AD 向应用程序分发用户或访问令牌之前,是否需要对用户或组执行 AppRoleAssignment。

appRoles
IList<AppRole>

应用程序可以声明的应用程序角色的集合。 可将这些角色分配给用户、组或服务主体。

displayName
String

服务主体的显示名称。

errorUrl
String

关联应用程序的作者提供的 URL,用于在使用应用程序时报告错误。

homepage
String

关联的应用程序主页的 URL。

keyCredentials
IList<KeyCredential>

与服务主体关联的密钥凭据的集合。

logoutUrl
String

由关联应用程序的作者提供的 URL,用于注销

oauth2Permissions
IList<OAuth2Permission>

关联的应用程序公开的 OAuth 2.0 权限。

passwordCredentials
IList<PasswordCredential>

与服务主体关联的密码凭据的集合。

preferredTokenSigningKeyThumbprint
String

要对令牌进行签名的首选证书的指纹

publisherName
String

关联应用程序的发布者名称

replyUrls
IList<String>

用户令牌发送到以使用关联应用程序登录的 URL。 oAuth 2.0 授权代码和访问令牌将发送到关联应用程序的重定向 URI。

samlMetadataUrl
String

关联应用程序的 SAML 元数据的 URL

servicePrincipalNames
IList<String>

服务主体名称的集合。

servicePrincipalType
String

服务主体的类型

tags
IList<String>

可应用于服务主体的标记的可选列表。 不可为 Null。

适用于