Constructs an AccountKey object using the specified string
account key or throws a FormatException if the
string has the wrong format.
Namespace: DegreeDays.ApiAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public AccountKey(
string stringAccountKey
)
Public Sub New (
stringAccountKey As String
)
Parameters
- stringAccountKey String
- A Degree Days.net API account key.
Exceptions Remarks
This constructor is somewhat tolerant of imperfect user input. It will try to
intelligently handle upper-case letters, white space, and missing or
non-hyphen block separators. If you're storing or displaying a string key
that a user has entered, make sure to use the string returned by
ToString, as that will be the corrected key in its canonical
form.
See Also