[ the jinxbot project :: home | community forum | bn# | controls | mbncsutil | get the source ]
Creates a CD key decoder for the specified key.

Namespace:  MBNCSUtil
Assembly:  MBNCSUtil (in MBNCSUtil.dll) Version: 2.1.7.22 (2.1.7.22)

Syntax

C#
public CdKey(
	string cdKey
)
Visual Basic (Declaration)
Public Sub New ( _
	cdKey As String _
)
Visual C++
public:
CdKey(
	String^ cdKey
)

Parameters

cdKey
Type: System..::.String
The CD key to initialize processing for.

Remarks

This constructor only conducts initial validity checks to ensure that the CD key is valid; that is, it checks for a valid key length (13, 16, or 26 characters) and checks that the characters are valid for the key type. For example, Starcraft keys are numeric only, whereas Warcraft II, Diablo II, Lord of Destruction, Warcraft III, and The Frozen Throne keys are alphanumeric.

Additional validity checks are conducted internally; however, these do not raise Exceptions. To confirm the validity of a key after instantiation, call the CdKey.IsValid property.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if the value of cdKey is null (Nothing in Visual Basic).
System..::.ArgumentOutOfRangeExceptionThrown if the CD key is an invalid length or does not pass initial validity checks.

See Also