packages/System.Net.Sockets.4.3.0/ref/netstandard1.3/zh-hant/System.Net.Sockets.xml

(开头部分) 43KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0" encoding="utf-8"?>
<doc>
  <assembly>
    <name>System.Net.Sockets</name>
  </assembly>
  <members>
    <member name="T:System.Net.Sockets.ProtocolType">
      <summary>指定 <see cref="T:System.Net.Sockets.Socket" /> 類別支援的通訊協定。</summary>
    </member>
    <member name="F:System.Net.Sockets.ProtocolType.Tcp">
      <summary>傳輸控制通訊協定。</summary>
    </member>
    <member name="F:System.Net.Sockets.ProtocolType.Udp">
      <summary>使用者資料包通訊協定 (User Datagram Protocol,UDP)。</summary>
    </member>
    <member name="F:System.Net.Sockets.ProtocolType.Unknown">
      <summary>不明的通訊協定。</summary>
    </member>
    <member name="F:System.Net.Sockets.ProtocolType.Unspecified">
      <summary>未指定的通訊協定。</summary>
    </member>
    <member name="T:System.Net.Sockets.Socket">
      <summary>實作 Berkeley 通訊端介面。</summary>
    </member>
    <member name="M:System.Net.Sockets.Socket.#ctor(System.Net.Sockets.AddressFamily,System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)">
      <summary>使用指定的通訊協定家族 (Family)、通訊端類型和通訊協定,初始化 <see cref="T:System.Net.Sockets.Socket" /> 類別的新執行個體。</summary>
      <param name="addressFamily">一個 <see cref="T:System.Net.Sockets.AddressFamily" /> 值。</param>
      <param name="socketType">其中一個 <see cref="T:System.Net.Sockets.SocketType" /> 值。</param>
      <param name="protocolType">其中一個 <see cref="T:System.Net.Sockets.ProtocolType" /> 值。</param>
      <exception cref="T:System.Net.Sockets.SocketException">
        <paramref name="addressFamily" />、<paramref name="socketType" /> 和 <paramref name="protocolType" /> 組合所產生的無效通訊端。</exception>
    </member>
    <member name="M:System.Net.Sockets.Socket.#ctor(System.Net.Sockets.SocketType,System.Net.Sockets.ProtocolType)">
      <summary>使用指定的通訊端類型和通訊協定,初始化 <see cref="T:System.Net.Sockets.Socket" /> 類別的新執行個體。</summary>
      <param name="socketType">其中一個 <see cref="T:System.Net.Sockets.SocketType" /> 值。</param>
      <param name="protocolType">其中一個 <see cref="T:System.Net.Sockets.ProtocolType" /> 值。</param>
      <exception cref="T:System.Net.Sockets.SocketException">
        <paramref name="socketType" /> 和 <paramref name="protocolType" /> 組合產生無效通訊端。</exception>
    </member>
    <member name="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)">
      <summary>開始非同步作業以接受連入的連接嘗試。</summary>
      <returns>如果 I/O 作業暫止,則傳回 true。作業完成時會引發與 <paramref name="e" /> 參數有關的 <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> 事件。如果 I/O 作業同步完成,則傳回 false。不會引發與 <paramref name="e" /> 參數有關的 <see cref="E:System.Net.Sockets.SocketAsyncEventArgs.Completed" /> 事件,而在方法呼叫傳回後會立即檢查做為參數傳遞的 <paramref name="e" /> 物件,以擷取作業的結果。</returns>
      <param name="e">
        <see cref="T:System.Net.Sockets.SocketAsyncEventArgs" /> 物件,用於這個非同步通訊端作業。</param>
      <exception cref="T:System.ArgumentException">引數是無效的。如果提供的緩衝區不夠大,就會發生這個例外狀況。緩衝區必須至少為 2 * (sizeof(SOCKADDR_STORAGE + 16) 位元組。如果指定多個緩衝區而 <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.BufferList" /> 屬性不是 null,也會發生這個例外狀況。</exception>
      <exception cref="T:System.ArgumentOutOfRangeException">引數超出範圍。如果 <see cref="P:System.Net.Sockets.SocketAsyncEventArgs.Count" /> 小於 0,就會發生這個例外狀況。</exception>
      <exception cref="T:System.InvalidOperationException">要求了無效的作業。如果接受的 <see cref="T:System.Net.Sockets.Socket" /> 不接聽連接或接受的通訊端已繫結,就會發生這個例外狀況。您必須先呼叫 <see cref="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)" /> 和 <see cref="M:System.Net.Sockets.Socket.Listen(System.Int32)" /> 方法,再呼叫 <see cref="M:System.Net.Sockets.Socket.AcceptAsync(System.Net.Sockets.SocketAsyncEventArgs)" /> 方法。此例外狀況也會在已與通訊端連線,或是通訊端作業已使用指定的 <paramref name="e" /> 參數進行時發生。</exception>
      <exception cref="T:System.Net.Sockets.SocketException">嘗試存取通訊端時發生錯誤。如需詳細資訊,請參閱「備註」一節。</exception>
      <exception cref="T:System.NotSupportedException">這個方法需要 Windows XP (含) 以後版本。</exception>
      <exception cref="T:System.ObjectDisposedException">
        <see cref="T:System.Net.Sockets.Socket" /> 已經關閉。</exception>
    </member>
    <member name="P:System.Net.Sockets.Socket.AddressFamily">
      <summary>取得 <see cref="T:System.Net.Sockets.Socket" /> 的通訊協定家族 (Family)。</summary>
      <returns>一個 <see cref="T:System.Net.Sockets.AddressFamily" /> 值。</returns>
    </member>
    <member name="M:System.Net.Sockets.Socket.Bind(System.Net.EndPoint)">
      <summary>使 <see cref="T:System.Net.Sockets.Socket" /> 與本機端點建立關聯。</summary>
      <param name="localEP">要與 <see cref="T:System.Net.Sockets.Socket" /> 關聯的本機 <see cref="T:System.Net.EndPoint" />。</param>
      <exception cref="T:System.ArgumentNullException">
后面还有 381 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。