OutboundHostValidator.IsAllowed 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
| Name | Description |
|---|---|
| IsAllowed(String) |
Determines whether an outbound request to |
| IsAllowed(Uri) |
Determines whether an outbound request to |
IsAllowed(String)
Determines whether an outbound request to url is permitted.
public bool IsAllowed(string url);
abstract member IsAllowed : string -> bool
override this.IsAllowed : string -> bool
Public Function IsAllowed (url As String) As Boolean
Parameters
- url
- String
The absolute URL that is about to be requested.
Returns
true when enforcement is disabled, or when enforcement is enabled and the URL's host
matches the built-in first-party allowlist or a configured host; otherwise false.
Implements
Applies to
IsAllowed(Uri)
Determines whether an outbound request to uri is permitted.
public bool IsAllowed(Uri uri);
abstract member IsAllowed : Uri -> bool
override this.IsAllowed : Uri -> bool
Public Function IsAllowed (uri As Uri) As Boolean
Parameters
- uri
- Uri
The absolute URI that is about to be requested.