Freigeben über


RequestExtensions.IsUrlLocalToHost(HttpRequestBase, String) Methode

Definition

Ermittelt, ob die angegebene URL auf den lokalen Computer verweist.

public static bool IsUrlLocalToHost (this System.Web.HttpRequestBase request, string url);
static member IsUrlLocalToHost : System.Web.HttpRequestBase * string -> bool
<Extension()>
Public Function IsUrlLocalToHost (request As HttpRequestBase, url As String) As Boolean

Parameter

request
HttpRequestBase

Das HTTP-Anforderungsobjekt.

url
String

Die zu testende URL.

Gibt zurück

true, wenn die angegebene URL auf den lokalen Computer verweist; andernfalls false.

Gilt für: