หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) parameter orient was renamed to orientation.
Previous behavior
Previously, calls to HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) included the orient parameter:
element.InsertAdjacentElement(orient: HtmlElementInsertionOrientation.AfterEnd, newElement);
New behavior
The new parameter name is orientation.
element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);
Version introduced
.NET 10
Type of breaking change
This change can affect source compatibility.
Reason for change
The parameter name was changed to provide a more descriptive name.
Recommended action
Edit any calls with a named argument to use the new parameter name or remove the parameter name:
element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);
element.InsertAdjacentElement(HtmlElementInsertionOrientation.AfterEnd, newElement);