Local CredentialParse Method
Parses the domain and user name from a string in the form 'user,password' or 'group:user,password'.
Definition
Namespace: Ookii.AnswerFile
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
An instance of the LocalCredential class.
Assembly: Ookii.AnswerFile (in Ookii.AnswerFile.dll) Version: 2.3.0+3ec3ef5391bcdf8d84abe65b91ab672cac4934d3
C#
public static LocalCredential Parse(
string value
)VB
Public Shared Function Parse (
value As String
) As LocalCredentialC++
public:
static LocalCredential^ Parse(
String^ value
)F#
static member Parse :
value : string -> LocalCredential Parameters
- value String
- The value to parse.
Return Value
LocalCredentialAn instance of the LocalCredential class.
Remarks
If the string does not contain a group, the value of the DefaultGroup constant is used.
Exceptions
| ArgumentNullException | value is . |
| FormatException | value is not in a valid format. |