次の方法で共有


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