C# 클래스 SobekCM.Tools.IpRangeUtilities.IpRangeSetV4

Set of IP address ranges used in the solution for quick IP range checks to support lookups within IP restrictions on the SobekCM engine
This supports very fast lookup to see if a provided IP address is within the set of IP ranges included within this set.
파일 보기 프로젝트 열기: MarkVSullivan/SobekCM-Web-Application 1 사용 예제들

공개 메소드들

메소드 설명
AddIpRange ( SingleIpRangeV4 IpRange ) : void

Add a single IP restriction range to this set

AddIpRange ( string SingleIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( string StartIpAddress, string EndIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( ulong SingleIpAddress ) : void

Add a single IP restriction range to this set

AddIpRange ( ulong StartIpAddress, ulong EndIpAddress ) : void

Add a single IP restriction range to this set

Contains ( ComparableIpAddress Address ) : bool

Check to see if a given IP address is within the IP ranges in this set

Contains ( string Address ) : bool

Check to see if a given IP address is within the IP ranges in this set

IpRangeSetV4 ( ) : System

Constructor for a new instance of the IpRangeSetV4 class

Ready ( ) : void

Readies this set for comparisons, by building some internal data structures

메소드 상세

AddIpRange() 공개 메소드

Add a single IP restriction range to this set
public AddIpRange ( SingleIpRangeV4 IpRange ) : void
IpRange SingleIpRangeV4 Single IP range
리턴 void

AddIpRange() 공개 메소드

Add a single IP restriction range to this set
public AddIpRange ( string SingleIpAddress ) : void
SingleIpAddress string Single IP address/range (as a string)
리턴 void

AddIpRange() 공개 메소드

Add a single IP restriction range to this set
public AddIpRange ( string StartIpAddress, string EndIpAddress ) : void
StartIpAddress string First IP address in the range (as a string)
EndIpAddress string Last IP address in the range (as a string)
리턴 void

AddIpRange() 공개 메소드

Add a single IP restriction range to this set
public AddIpRange ( ulong SingleIpAddress ) : void
SingleIpAddress ulong Single IP address/range (as an unsigned long)
리턴 void

AddIpRange() 공개 메소드

Add a single IP restriction range to this set
public AddIpRange ( ulong StartIpAddress, ulong EndIpAddress ) : void
StartIpAddress ulong First IP address in the range (as an unsigned long)
EndIpAddress ulong Last IP address in the range (as an unsigned long)
리턴 void

Contains() 공개 메소드

Check to see if a given IP address is within the IP ranges in this set
public Contains ( ComparableIpAddress Address ) : bool
Address ComparableIpAddress IP address to check for inclusion ( as a object )
리턴 bool

Contains() 공개 메소드

Check to see if a given IP address is within the IP ranges in this set
public Contains ( string Address ) : bool
Address string IP address to check for inclusion ( as a string )
리턴 bool

IpRangeSetV4() 공개 메소드

Constructor for a new instance of the IpRangeSetV4 class
public IpRangeSetV4 ( ) : System
리턴 System

Ready() 공개 메소드

Readies this set for comparisons, by building some internal data structures
public Ready ( ) : void
리턴 void