AppCredentials.TrustServiceUrl 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 不再受信任的过期时间。
- 属性