AppCredentials.TrustServiceUrl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| TrustServiceUrl(String) |
已淘汰.
將服務主機的網址 MicrosoftAppCredentials 加入受信任的主機。 |
| TrustServiceUrl(String, DateTime) |
已淘汰.
將服務主機的網址 MicrosoftAppCredentials 加入受信任的主機。 |
TrustServiceUrl(String)
警告
TrustServiceUrl is not a required part of the security model.
將服務主機的網址 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.
將服務主機的網址 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
過期後,該服務網址不再被信任。
- 屬性