CancelData

CancelData Class

The event is sent when a subscription is canceled.

Syntax

public class CancelData : EventData

Remarks

Coroutines in a WaitFor will capture this event and throw WaitCanceledException.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Members

See Also: Inherited members from EventData.

Public Properties

[read-only]
 
Message string . String description of the error condition.
[read-only]
 
Reason int . Integer error code. The value varies depending on the method called.

Public Methods

override
ToString () : string
Generates a string representation of the EventData. (Inherited from EventData.)

Member Details

Message Property

String description of the error condition.

Syntax

public string Message { get; }

Value

The error message string.

Remarks

Useful for debugging.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0

Reason Property

Integer error code. The value varies depending on the method called.

Syntax

public int Reason { get; }

Value

Error message int reason.

Remarks

See the documentation for the Subscribe method for details.

Requirements

Namespace: Sansar.Script
Assembly: Sansar.Script (in Sansar.Script.dll)
Assembly Versions: 1.0.0.0


Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.