Click or drag to resize
Traits Class
Contains data for the traits record associated with an IP address.
Inheritance Hierarchy
System.Object
  MaxMind.GeoIP2.Model.Traits

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 2.7.1
Syntax
public class Traits

The Traits type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAutonomousSystemNumber
The autonomous system number associated with the IP address. This value is only set when using the City or Insights web service or the Enterprise database.
Public propertyAutonomousSystemOrganization
The organization associated with the registered autonomous system number for the IP address. This value is only set when using the City or Insights web service or the Enterprise database.
Public propertyConnectionType
The connection type of the IP address. This value is only set when using the Enterprise database.
Public propertyDomain
The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com". This value is only set when using the City or Insights web service or the Enterprise database.
Public propertyIPAddress
The IP address that the data in the model is for. If you performed a "me" lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it.
Public propertyIsAnonymousProxy Obsolete.
This is true if the IP is an anonymous proxy. See MaxMind's GeoIP FAQ
Public propertyIsLegitimateProxy
True if MaxMind believes this IP address to be a legitimate proxy, such as an internal VPN used by a corporation.This is only available in the GeoIP2 Enterprise database.
Public propertyIsp
The name of the ISP associated with the IP address. This value is only set when using the City or Insights web service or the Enterprise database.
Public propertyIsSatelliteProvider Obsolete.
This is true if the IP belong to a satellite Internet provider.
Public propertyOrganization
The name of the organization associated with the IP address. This value is only set when using the City or Insights web service or the Enterprise database.
Public propertyUserType
The user type associated with the IP address. This can be one of the following values:
  • business
  • cafe
  • cellular
  • college
  • content_delivery_network
  • dialup
  • government
  • hosting
  • library
  • military
  • residential
  • router
  • school
  • search_engine_spider
  • traveler
This value is only set when using the City or Insights web service or the Enterprise database.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Overrides Object.ToString().)
Top
See Also