SecurityKey(SecureString) Constructor |
Constructs a SecurityKey object using the string security key held by
the SecureString passed in, or throws a
FormatException if the string is clearly invalid.
Namespace: DegreeDays.ApiAssembly: DegreeDays (in DegreeDays.dll) Version: 1.4
Syntax public SecurityKey(
SecureString stringSecurityKey
)
Public Sub New (
stringSecurityKey As SecureString
)
Parameters
- stringSecurityKey SecureString
- A SecureString object holding a
Degree Days.net API security 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
ToStringKey, as that will be the corrected key in its canonical
form.
See Also