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 不再受信任的过期时间。

属性

适用于