AppCredentials.TrustServiceUrl Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
TrustServiceUrl(String) |
Obsolete.
Adds the host of service url to MicrosoftAppCredentials trusted hosts. |
TrustServiceUrl(String, DateTime) |
Obsolete.
Adds the host of service url to MicrosoftAppCredentials trusted hosts. |
TrustServiceUrl(String)
Caution
TrustServiceUrl is not a required part of the security model.
Adds the host of service url to MicrosoftAppCredentials trusted 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
The service URL.
- Attributes
Remarks
If expiration time is not provided, the expiration time will DateTime.UtcNow.AddDays(1).
Applies to
TrustServiceUrl(String, DateTime)
Caution
TrustServiceUrl is not a required part of the security model.
Adds the host of service url to MicrosoftAppCredentials trusted 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
The service URL.
- expirationTime
- DateTime
The expiration time after which this service url is not trusted anymore.
- Attributes