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.

適用於