语言

AppCredentials.TrustServiceUrl 方法

定义

重载

名称 说明
TrustServiceUrl(String)
已过时.

将服务主机的URL MicrosoftAppCredentials 添加到可信主机上。

TrustServiceUrl(String, DateTime)
已过时.

将服务主机的URL MicrosoftAppCredentials 添加到可信主机上。

TrustServiceUrl(String)

注意

TrustServiceUrl is not a required part of the security model.

将服务主机的URL MicrosoftAppCredentials 添加到可信主机上。

[System.Obsolete("TrustServiceUrl is not a required part of the security model.")]
public static void TrustServiceUrl(string serviceUrl);
[<System.Obsolete("TrustServiceUrl is not a required part of the security model.")>]
static member TrustServiceUrl : string -> unit
Public Shared Sub TrustServiceUrl (serviceUrl As String)

参数

serviceUrl
String

服务 URL。

属性

注解

如果未提供有效期,则到期时间为DateTime.UtcNow.AddDays(1)。

适用于

TrustServiceUrl(String, DateTime)

注意

TrustServiceUrl is not a required part of the security model.

将服务主机的URL MicrosoftAppCredentials 添加到可信主机上。

[System.Obsolete("TrustServiceUrl is not a required part of the security model.")]
public static void TrustServiceUrl(string serviceUrl, DateTime expirationTime);
[<System.Obsolete("TrustServiceUrl is not a required part of the security model.")>]
static member TrustServiceUrl : string * DateTime -> unit
Public Shared Sub TrustServiceUrl (serviceUrl As String, expirationTime As DateTime)

参数

serviceUrl
String

服务 URL。

expirationTime
DateTime

该服务URL的过期时间将不再被信任。

属性

适用于