Show / Hide Table of Contents

Method FromErrorMessage

| Improve this Doc View Source

FromErrorMessage(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

errorMessage is null or empty.

| Improve this Doc View Source

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

errorMessage is null or empty.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest