|
313 | 313 | <Parameter Name="address" Type="System.ReadOnlySpan<System.Char>" Index="0" FrameworkAlternate="net-5.0" />
|
314 | 314 | </Parameters>
|
315 | 315 | <Docs>
|
316 |
| - <param name="address">To be added.</param> |
317 |
| - <summary>To be added.</summary> |
318 |
| - <returns>To be added.</returns> |
319 |
| - <remarks>To be added.</remarks> |
| 316 | + <param name="address">A span containing the address that will be used to initialize the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance returned by this method.</param> |
| 317 | + <summary>Parses the specified span and stores its contents as the address bytes of the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> returned by this method.</summary> |
| 318 | + <returns>A <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance with the specified address.</returns> |
| 319 | + <remarks> |
| 320 | + <format type="text/markdown"><] |
| 341 | + |
| 342 | + ]]></format> |
| 343 | + </remarks> |
| 344 | + <exception cref="T:System.FormatException"> |
| 345 | + <paramref name="address" /> contains an illegal hardware address or contains a string in the incorrect format.</exception> |
320 | 346 | </Docs>
|
321 | 347 | </Member>
|
322 | 348 | <Member MemberName="Parse">
|
|
464 | 490 | </Parameter>
|
465 | 491 | </Parameters>
|
466 | 492 | <Docs>
|
467 |
| - <param name="address">To be added.</param> |
468 |
| - <param name="value">To be added.</param> |
469 |
| - <summary>To be added.</summary> |
470 |
| - <returns>To be added.</returns> |
471 |
| - <remarks>To be added.</remarks> |
| 493 | + <param name="address">A span containing the address that will be used to initialize the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance returned by this method.</param> |
| 494 | + <param name="value">When this method returns, contains the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance equivalent of the address contained in <paramref name="address" />, if the conversion succeeded, or <see langword="null" /> if the conversion failed. This parameter is passed uninitialized; any value originally supplied in <paramref name="result" /> will be overwritten.</param> |
| 495 | + <summary>Tries to convert the span representation of a hardware address to a <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance. A return value indicates whether the conversion succeeded.</summary> |
| 496 | + <returns> |
| 497 | + <see langword="true" /> if <paramref name="address" /> was converted successfully; otherwise, <see langword="false" />.</returns> |
| 498 | + <remarks> |
| 499 | + <format type="text/markdown"><![CDATA[ |
| 500 | + |
| 501 | +## Remarks |
| 502 | + The `address` parameter must contain a string that can only consist of numbers and upper-case letters as hexadecimal digits. Some examples of string formats that are legal are as follows: |
| 503 | + |
| 504 | + `001122334455` |
| 505 | + |
| 506 | + `00-11-22-33-44-55` |
| 507 | + |
| 508 | + `F0-E1-D2-C3-B4-A5` |
| 509 | + |
| 510 | + Note that an address that contains `f0-e1-d2-c3-b4-a5` is illegal. |
| 511 | + |
| 512 | + Use the <xref:System.Net.NetworkInformation.PhysicalAddress.GetAddressBytes%2A> method to retrieve the address from an existing <xref:System.Net.NetworkInformation.PhysicalAddress> instance. |
| 513 | + |
| 514 | + ]]></format> |
| 515 | + </remarks> |
472 | 516 | </Docs>
|
473 | 517 | </Member>
|
474 | 518 | <Member MemberName="TryParse">
|
|
501 | 545 | </Parameter>
|
502 | 546 | </Parameters>
|
503 | 547 | <Docs>
|
504 |
| - <param name="address">To be added.</param> |
505 |
| - <param name="value">To be added.</param> |
506 |
| - <summary>To be added.</summary> |
507 |
| - <returns>To be added.</returns> |
508 |
| - <remarks>To be added.</remarks> |
| 548 | + <param name="address">A string containing the address that will be used to initialize the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance returned by this method.</param> |
| 549 | + <param name="value">When this method returns, contains the <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance equivalent of the address contained in <paramref name="address" />, if the conversion succeeded, or <see langword="null" /> if the conversion failed. If the <paramref name="address" /> is <see langword="null" /> it contains <see cref="T:System.Net.NetworkInformation.PhysicalAddress.None" />. This parameter is passed uninitialized; any value originally supplied in <paramref name="result" /> will be overwritten.</param> |
| 550 | + <summary>Tries to convert the string representation of a hardware address to a <see cref="T:System.Net.NetworkInformation.PhysicalAddress" /> instance. A return value indicates whether the conversion succeeded.</summary> |
| 551 | + <returns> |
| 552 | + <see langword="true" /> if <paramref name="address" /> was converted successfully; otherwise, <see langword="false" />.</returns> |
| 553 | + <remarks> |
| 554 | + <format type="text/markdown"><![CDATA[ |
| 555 | + |
| 556 | +## Remarks |
| 557 | + The `address` parameter must contain a string that can only consist of numbers and upper-case letters as hexadecimal digits. Some examples of string formats that are legal are as follows: |
| 558 | + |
| 559 | + `001122334455` |
| 560 | + |
| 561 | + `00-11-22-33-44-55` |
| 562 | + |
| 563 | + `F0-E1-D2-C3-B4-A5` |
| 564 | + |
| 565 | + Note that an address that contains `f0-e1-d2-c3-b4-a5` is illegal. |
| 566 | + |
| 567 | + Use the <xref:System.Net.NetworkInformation.PhysicalAddress.GetAddressBytes%2A> method to retrieve the address from an existing <xref:System.Net.NetworkInformation.PhysicalAddress> instance. |
| 568 | + |
| 569 | + ]]></format> |
| 570 | + </remarks> |
509 | 571 | </Docs>
|
510 | 572 | </Member>
|
511 | 573 | </Members>
|
|
0 commit comments