Unosquare
    Show / Hide Table of Contents

    Class ConnectionAcceptingEventArgs

    Occurs before a connection is accepted. Set the Cancel property to true to prevent the connection from being accepted.

    Inheritance
    Object
    EventArgs
    ConnectionAcceptedEventArgs
    ConnectionAcceptingEventArgs
    Inherited Members
    ConnectionAcceptedEventArgs.Client
    EventArgs.Empty
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Swan.Net
    Syntax
    public class ConnectionAcceptingEventArgs : ConnectionAcceptedEventArgs

    Constructors

    ConnectionAcceptingEventArgs(TcpClient)

    Initializes a new instance of the ConnectionAcceptingEventArgs class.

    Declaration
    public ConnectionAcceptingEventArgs(TcpClient client)
    Parameters
    Type Name Description
    TcpClient client

    The client.

    Properties

    Cancel

    Setting Cancel to true rejects the new TcpClient.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    Boolean

    true if cancel; otherwise, false.

    See Also

    ConnectionAcceptedEventArgs

    Comments

    Back to top Copyright © 2017-2019 Unosquare