CAS.Lib.CodeProtect Namespace
CAS.Lib.CodeProtect.LicenseDsc Namespace
CAS.Lib.CodeProtect.LicenseDsc.Constraints Namespace
CAS.Lib.CodeProtect.Properties Namespace
OOI CodeProtect

DomainConstraint Constructor (LicenseFile)

This is the constructor for the DomainConstraint. The constructor is used to create the object and assign it to the proper license.

Namespace:  CAS.Lib.CodeProtect.LicenseDsc.Constraints
Assembly:  CAS.CodeProtect (in CAS.CodeProtect.dll)

Syntax


public DomainConstraint(
	LicenseFile license
)
Public Sub New ( _
	license As LicenseFile _
)
public:
DomainConstraint(
	LicenseFile^ license
)

Parameters

license
Type: CAS.Lib.CodeProtect.LicenseDsc..::..LicenseFile
The LicenseFile this constraint belongs to.

Remarks


This constructor initializes the current domain. When initializing this an exception can be thrown. The constructor will catch the exception and set the current domain to an empty string. The license can handle this by setting one of the domains to an empty string which should allow the validation to pass. This call will throw an exception only when used in a non web environment.