Skip to content

ERPConnect.LIC

Namespace: ERPConnect
Assembly: ERPConnectStandard20.dll

This class is for licensing purpose

public static class LIC

Inheritance

objectLIC

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

ExpirationDate

Date on which the license key expires

public static DateTime ExpirationDate { get; }

Property Value

DateTime

Methods

IsValid()

Checks if the current license key is valid.

public static bool IsValid()

Returns

bool

Exceptions

ERPException

Thrown, if current license is not valid.

SetLic(string)

Sets the current licence key

public static void SetLic(string key)

Parameters

key string

Licence key

Remarks

Use this Method to set a valid licence key before opening a server or client connection to SAP

ERPConnect.LIC.SetLic("XXXXXXXXXX");