Method FromErrorMessage
| Improve this Doc View SourceFromErrorMessage(String)
Initializes a new instance of LicenseProviderResult structure from error message string.
Declaration
public static LicenseProviderResult FromErrorMessage(string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage | The error message string. |
Returns
Type | Description |
---|---|
LicenseProviderResult | The created LicenseProviderResult structure. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
FromErrorMessage(String, Object)
Initializes a new instance of LicenseProviderResult structure from error message string, with additional data.
Declaration
public static LicenseProviderResult FromErrorMessage(string errorMessage, object data)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage | The error message string. |
System.Object | data | The additional data. |
Returns
Type | Description |
---|---|
LicenseProviderResult | The created LicenseProviderResult structure. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|