Share via


DotNetInvocationResult Constructors

Definition

Overloads

DotNetInvocationResult(Object)

Constructor for a successful invocation.

DotNetInvocationResult(Exception, String)

Constructor for a failed invocation.

DotNetInvocationResult(Object)

Source:
DotNetInvocationResult.cs
Source:
DotNetInvocationResult.cs
Source:
DotNetInvocationResult.cs

Constructor for a successful invocation.

public:
 DotNetInvocationResult(System::Object ^ result);
public DotNetInvocationResult (object result);
public DotNetInvocationResult (object? result);
new Microsoft.JSInterop.Infrastructure.DotNetInvocationResult : obj -> Microsoft.JSInterop.Infrastructure.DotNetInvocationResult
Public Sub New (result As Object)

Parameters

result
Object

The result.

Applies to

DotNetInvocationResult(Exception, String)

Source:
DotNetInvocationResult.cs
Source:
DotNetInvocationResult.cs
Source:
DotNetInvocationResult.cs

Constructor for a failed invocation.

public:
 DotNetInvocationResult(Exception ^ exception, System::String ^ errorKind);
public DotNetInvocationResult (Exception exception, string errorKind);
public DotNetInvocationResult (Exception exception, string? errorKind);
new Microsoft.JSInterop.Infrastructure.DotNetInvocationResult : Exception * string -> Microsoft.JSInterop.Infrastructure.DotNetInvocationResult
Public Sub New (exception As Exception, errorKind As String)

Parameters

exception
Exception

The Exception that caused the failure.

errorKind
String

The error kind.

Applies to