HttpRequest.IsLocal HttpRequest.IsLocal HttpRequest.IsLocal HttpRequest.IsLocal Property

定义

获取一个值,该值指示该请求是否来自本地计算机。Gets a value indicating whether the request is from the local computer.

public:
 property bool IsLocal { bool get(); };
public bool IsLocal { get; }
member this.IsLocal : bool
Public ReadOnly Property IsLocal As Boolean

属性值

如果该请求来自本地计算机,则为 true;否则,为 falsetrue if the request is from the local computer; otherwise, false.

注解

如果IsLocal请求发起true方的 ip 地址为127.0.0.1 或请求的 ip 地址与服务器的 ip 地址相同,则属性将返回。The IsLocal property returns true if the IP address of the request originator is 127.0.0.1 or if the IP address of the request is the same as the server's IP address.

适用于