docs.unity3d.com
Search Results for

    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.

    Implements
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Networking.Transport
    Assembly: Unity.Networking.Transport.dll
    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
    int

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

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Implements

    IDisposable
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)