HttpRequest.IsLocal 属性

定义

获取指示请求是否来自本地计算机的值。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

属性值

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.

适用于