Delen via


AppCredentials.TrustServiceUrl Methode

Definitie

Overloads

TrustServiceUrl(String)
Verouderd.

Hiermee voegt u de URL van de host van de service toe aan MicrosoftAppCredentials vertrouwde hosts.

TrustServiceUrl(String, DateTime)
Verouderd.

Hiermee voegt u de URL van de host van de service toe aan MicrosoftAppCredentials vertrouwde hosts.

TrustServiceUrl(String)

Waarschuwing

TrustServiceUrl is not a required part of the security model.

Hiermee voegt u de URL van de host van de service toe aan MicrosoftAppCredentials vertrouwde hosts.

[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)

Parameters

serviceUrl
String

De service-URL.

Kenmerken

Opmerkingen

Als de verlooptijd niet is opgegeven, wordt datetime.UtcNow.AddDays(1) als verlooptijd gebruikt.

Van toepassing op

TrustServiceUrl(String, DateTime)

Waarschuwing

TrustServiceUrl is not a required part of the security model.

Hiermee voegt u de URL van de host van de service toe aan MicrosoftAppCredentials vertrouwde hosts.

[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)

Parameters

serviceUrl
String

De service-URL.

expirationTime
DateTime

De verlooptijd waarna deze service-URL niet meer wordt vertrouwd.

Kenmerken

Van toepassing op