Свойство | Type | Description | |
---|---|---|---|
Copyright | string |
Свойство | Type | Description | |
---|---|---|---|
_properties | byte[] | ||
_propertyHttpHeaders | List |
||
_propertyIndex | int>.Dictionary | ||
_propertyNames | List |
Méthode | Description | |
---|---|---|
Dispose ( ) : void |
Disposes of all the resources used by the provider.
|
|
GetDeviceId ( int deviceIndex ) : string |
Returns the device id matching the device index.
|
|
GetDeviceIndex ( string userAgent ) : int |
Returns the index of the device associated with the given User-Agent. The index returned may vary across different versions of the source data file and should not be stored. The "Id" property will remain unique.
|
|
GetDeviceIndexes ( |
Returns a collection of device indexes for each of the relevent HTTP headers provided. Those headers which are unrelated to device detection are ignored.
|
|
GetPropertyValue ( int>.IDictionary |
Returns the value of the property index provided from the device indexes provided. Matches the Http header to the property index.
|
|
GetPropertyValue ( int>.IDictionary |
Returns the property value based on the device indexes provided.
|
|
GetPropertyValue ( |
Returns the value of the property for the User-Agent provided.
|
|
GetPropertyValue ( int deviceIndex, int propertyIndex ) : string |
Returns the value of the property index provided for the device index provided.
|
|
GetPropertyValue ( int deviceIndex, string property ) : string |
Returns the property value based on the device index provided.
|
|
GetPropertyValue ( string userAgent, string propertyName ) : string |
Returns the value of the property for the User-Agent provided.
|
|
GetUserAgent ( string userAgent ) : string |
Returns the User-Agent matched against the one provided.
|
|
SizeOfOffsets ( OffsetType offsetType ) : int |
The number of bytes each offset takes.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Disposes of all the resources used by the provider.
|
|
GetStringValue ( int offset ) : string |
Returns the string at the offset provided.
|
Méthode | Description | |
---|---|---|
GetChild ( int lookupOffset, byte value ) : byte |
Returns the offset in the node for the current character.
|
|
GetDeviceIndex ( |
Returns the offset in the device byte array to the device matching the useragent provided.
|
|
GetDeviceIndex ( |
Returns the offset in the device byte array to the device matching the useragent provided.
|
|
GetUserAgentByteArray ( string userAgent ) : byte[] |
Converts a User-Agent in to a null terminated byte array.
|
|
SetNextNodePosition ( |
Returns the position in the nodes stream of the next node.
|
|
TrieProvider ( string copyright, byte strings, byte properties, byte devices, byte lookupList, long nodesLength, long nodesOffset, |
Constructs a new instance of a tree provider.
|
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if the calling method is Dispose, false for the finaliser. |
Résultat | void |
public GetDeviceId ( int deviceIndex ) : string | ||
deviceIndex | int | Index of the device whose Id should be returned |
Résultat | string |
public GetDeviceIndex ( string userAgent ) : int | ||
userAgent | string | |
Résultat | int |
public GetDeviceIndexes ( |
||
headers | Collection of HTTP headers and values | |
Résultat | int>.IDictionary |
public GetPropertyValue ( int>.IDictionary |
||
deviceIndexes | int>.IDictionary | _indexes for the device. |
propertyIndex | int | Index of the property required. |
Résultat | string |
public GetPropertyValue ( int>.IDictionary |
||
deviceIndexes | int>.IDictionary | Http headers and their device index. |
property | string | The name of the property required. |
Résultat | string |
public GetPropertyValue ( |
||
headers | Collection of HTTP headers and values | |
propertyName | string | Name of the property required |
Résultat | string |
public GetPropertyValue ( int deviceIndex, int propertyIndex ) : string | ||
deviceIndex | int | Index for the device. |
propertyIndex | int | Index of the property required. |
Résultat | string |
public GetPropertyValue ( int deviceIndex, string property ) : string | ||
deviceIndex | int | The index of the device whose property should be returned. |
property | string | The name of the property required. |
Résultat | string |
public GetPropertyValue ( string userAgent, string propertyName ) : string | ||
userAgent | string | User agent of the request |
propertyName | string | Name of the property required |
Résultat | string |
protected GetStringValue ( int offset ) : string | ||
offset | int | |
Résultat | string |
public GetUserAgent ( string userAgent ) : string | ||
userAgent | string | |
Résultat | string |
public static SizeOfOffsets ( OffsetType offsetType ) : int | ||
offsetType | OffsetType | |
Résultat | int |