C# Class Klarna.Checkout.UserAgent

The user agent string creation class.
Datei anzeigen Open project: klarna/kco_dotnet

Public Methods

Method Description
AddField ( string field, string name, string version ) : void

Adds a field to the field collection.

AddField ( string field, string name, string version, string options ) : void

Adds a field to the field collection.

ToString ( ) : string

Returns the user agent string.

UserAgent ( ) : System

Initializes a new instance of the UserAgent class. Following fields are predefined: Library, OS, Language and Webserver.

Private Methods

Method Description
IisVersion ( ) : string

Gets IIS version.

Method Details

AddField() public method

Adds a field to the field collection.
/// Thrown if field already exists. ///
public AddField ( string field, string name, string version ) : void
field string /// The field name. ///
name string /// The name. ///
version string /// The version. ///
return void

AddField() public method

Adds a field to the field collection.
/// Thrown if field already exists. ///
public AddField ( string field, string name, string version, string options ) : void
field string /// The field name. ///
name string /// The name. ///
version string /// The version. ///
options string /// The options. ///
return void

ToString() public method

Returns the user agent string.
public ToString ( ) : string
return string

UserAgent() public method

Initializes a new instance of the UserAgent class. Following fields are predefined: Library, OS, Language and Webserver.
public UserAgent ( ) : System
return System