共用方式為


HtmlElement.InsertAdjacentElement 中重新命名的參數

HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) 參數 orient 已重新命名為 orientation

先前的行為

先前,呼叫中包含HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement)orient的參數:

element.InsertAdjacentElement(orient: HtmlElementInsertionOrientation.AfterEnd, newElement);

新行為

新的參數名稱 orientation

element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);

引進的版本

.NET 10

中斷性變更的類型

這項變更可能會影響 來源相容性

變更的原因

參數名稱已變更,以提供更具描述性的名稱。

編輯具有具名自變數的任何呼叫,以使用新的參數名稱或移除參數名稱:

element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);
element.InsertAdjacentElement(HtmlElementInsertionOrientation.AfterEnd, newElement);

受影響的 API