-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
BindIPEndPoint.xml
73 lines (69 loc) · 4.79 KB
/
BindIPEndPoint.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<Type Name="BindIPEndPoint" FullName="System.Net.BindIPEndPoint">
<TypeSignature Language="C#" Value="public delegate System.Net.IPEndPoint BindIPEndPoint(ServicePoint servicePoint, IPEndPoint remoteEndPoint, int retryCount);" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed BindIPEndPoint extends System.MulticastDelegate" />
<TypeSignature Language="DocId" Value="T:System.Net.BindIPEndPoint" />
<TypeSignature Language="VB.NET" Value="Public Delegate Function BindIPEndPoint(servicePoint As ServicePoint, remoteEndPoint As IPEndPoint, retryCount As Integer) As IPEndPoint " />
<TypeSignature Language="F#" Value="type BindIPEndPoint = delegate of ServicePoint * IPEndPoint * int -> IPEndPoint" />
<TypeSignature Language="C++ CLI" Value="public delegate System::Net::IPEndPoint ^ BindIPEndPoint(ServicePoint ^ servicePoint, IPEndPoint ^ remoteEndPoint, int retryCount);" />
<AssemblyInfo>
<AssemblyName>System</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.0.5.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>netstandard</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>2.1.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Net.ServicePoint</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.1.0</AssemblyVersion>
<AssemblyVersion>4.0.2.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>System.Net.Requests</AssemblyName>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<TypeForwardingChain>
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Net.ServicePoint" ToVersion="5.0.0.0" FrameworkAlternate="net-5.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Net.ServicePoint" ToVersion="6.0.0.0" FrameworkAlternate="net-6.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Net.ServicePoint" ToVersion="7.0.0.0" FrameworkAlternate="net-7.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Net.ServicePoint" ToVersion="8.0.0.0" FrameworkAlternate="net-8.0" />
<TypeForwarding From="netstandard" FromVersion="2.1.0.0" To="System.Net.Requests" ToVersion="9.0.0.0" FrameworkAlternate="net-9.0" />
<TypeForwarding From="System.Net.ServicePoint" FromVersion="9.0.0.0" To="System.Net.Requests" ToVersion="9.0.0.0" FrameworkAlternate="net-9.0" />
</TypeForwardingChain>
<Base>
<BaseTypeName>System.Delegate</BaseTypeName>
</Base>
<Parameters>
<Parameter Name="servicePoint" Type="System.Net.ServicePoint" />
<Parameter Name="remoteEndPoint" Type="System.Net.IPEndPoint" />
<Parameter Name="retryCount" Type="System.Int32" />
</Parameters>
<ReturnValue>
<ReturnType>System.Net.IPEndPoint</ReturnType>
</ReturnValue>
<Docs>
<param name="servicePoint">The <see cref="T:System.Net.ServicePoint" /> associated with the connection to be created.</param>
<param name="remoteEndPoint">The remote <see cref="T:System.Net.IPEndPoint" /> that specifies the remote host.</param>
<param name="retryCount">The number of times this delegate was called for a specified connection.</param>
<summary>Represents the method that specifies a local Internet Protocol address and port number for a <see cref="T:System.Net.ServicePoint" />.</summary>
<returns>The local <see cref="T:System.Net.IPEndPoint" /> to which the <see cref="T:System.Net.ServicePoint" /> is bound.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Specify that the <xref:System.Net.BindIPEndPoint> delegate is used by a <xref:System.Net.ServicePoint> by setting the <xref:System.Net.ServicePoint.BindIPEndPointDelegate%2A?displayProperty=nameWithType> property with the delegate as an argument. This delegate should specify a local IP address and port number in the returned <xref:System.Net.IPEndPoint>.
If the .NET Framework cannot bind the returned <xref:System.Net.IPEndPoint> to the <xref:System.Net.ServicePoint> after <xref:System.Int32.MaxValue?displayProperty=nameWithType> attempts, an <xref:System.OverflowException> is thrown.
If you want the delegate to give the service point control of the connection binding, the delegate should return `null`. If you want to abort the connection, the delegate must throw an exception.
]]></format>
</remarks>
<exception cref="T:System.OverflowException">
<paramref name="retryCount" /> is equal to <see cref="F:System.Int32.MaxValue">Int32.MaxValue</see></exception>
</Docs>
</Type>