閱讀英文版本

分享方式:


CompletionMessage interface

A hub message representing the result of an invocation.

Extends

Properties

error

The error produced by the invocation, if any. Either error or result must be defined, but not both.

headers

A MessageHeaders dictionary containing headers attached to the message.

invocationId

The invocation ID.

result

The result produced by the invocation, if any. Either error or result must be defined, but not both.

type

Property Details

error

The error produced by the invocation, if any. Either error or result must be defined, but not both.

TypeScript
error?: string

Property Value

string

headers

A MessageHeaders dictionary containing headers attached to the message.

TypeScript
headers?: MessageHeaders

Property Value

invocationId

The invocation ID.

TypeScript
invocationId: string

Property Value

string

result

The result produced by the invocation, if any. Either error or result must be defined, but not both.

TypeScript
result?: any

Property Value

any

type

TypeScript
type: Completion

Property Value