docs.unity.cn
    Show / Hide Table of Contents

    Struct OperationResult

    Stores the result of a network operation. This is normally used when a job needs to return a result to its caller. For example the ReceiveJobArguments structure contains one which is used to report the result of receive operations on network interfaces, which is then reported through ReceiveErrorCode.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Networking.Transport
    Syntax
    public struct OperationResult : IDisposable

    Properties

    ErrorCode

    Get and set the error code for the operation. Setting a non-zero value will result in the error also being logged to the console.

    Declaration
    public int ErrorCode { get; set; }
    Property Value
    Type Description
    Int32

    Numerical error code (0 is success, anything else is an error).

    Methods

    Dispose()

    Declaration
    public void Dispose()
    Implements
    IDisposable.Dispose()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, June 1, 2023