C# Класс FiftyOne.Foundation.Mobile.Detection.LicenceKey

Static class used to manage the activate licence keys.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
AddKeysFromFile void
CheckConfig void
IsKeyFormatValid bool

Открытые методы

Метод Описание
Activate ( Stream stream ) : LicenceKeyResults

Activates the data pointed to by the stream.

Activate ( byte data ) : LicenceKeyResults

Activates the data array containing the premium data.

Activate ( string licenceKey ) : LicenceKeyResults

Activates the licence key provided.

AddKey ( string key ) : void

Adds a licence key to the list of available licence keys at runtime. This method can be used by 3rd party assemblies to set licence keys.

Приватные методы

Метод Описание
AddKeysFromFile ( List list, string fileName ) : void

Adds the valid licence keys from the files provided.

CheckConfig ( ) : void

Checks

IsKeyFormatValid ( string key ) : bool

Returns true if the key format is valid. i.e. it contains only upper case letters and numbers.

Описание методов

Activate() публичный статический Метод

Activates the data pointed to by the stream.
public static Activate ( Stream stream ) : LicenceKeyResults
stream Stream Stream to data to activate
Результат LicenceKeyResults

Activate() публичный статический Метод

Activates the data array containing the premium data.
public static Activate ( byte data ) : LicenceKeyResults
data byte Data to activate
Результат LicenceKeyResults

Activate() публичный статический Метод

Activates the licence key provided.
public static Activate ( string licenceKey ) : LicenceKeyResults
licenceKey string Licence key
Результат LicenceKeyResults

AddKey() публичный статический Метод

Adds a licence key to the list of available licence keys at runtime. This method can be used by 3rd party assemblies to set licence keys.
public static AddKey ( string key ) : void
key string Valid licence key
Результат void