共用方式為


RuntimeOps.ExpandoPromoteClass(ExpandoObject, Object, Object) 方法

定義

警告

do not use this method

將 Expando 物件從某個類別升級為新類別。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static void ExpandoPromoteClass(System::Dynamic::ExpandoObject ^ expando, System::Object ^ oldClass, System::Object ^ newClass);
[System.Obsolete("do not use this method", true)]
public static void ExpandoPromoteClass (System.Dynamic.ExpandoObject expando, object oldClass, object newClass);
[<System.Obsolete("do not use this method", true)>]
static member ExpandoPromoteClass : System.Dynamic.ExpandoObject * obj * obj -> unit
Public Shared Sub ExpandoPromoteClass (expando As ExpandoObject, oldClass As Object, newClass As Object)

參數

expando
ExpandoObject

Expando 物件。

oldClass
Object

Expando 物件的舊類別。

newClass
Object

Expando 物件的新類別。

屬性

適用於