TypeBuilder.IsCreated 方法

定義

傳回表示是否已建立目前動態類型的值。Returns a value that indicates whether the current dynamic type has been created.

public:
 bool IsCreated();
public bool IsCreated ();
member this.IsCreated : unit -> bool
Public Function IsCreated () As Boolean

傳回

Boolean

如已呼叫 CreateType() 方法,則為 true,否則為 falsetrue if the CreateType() method has been called; otherwise, false.

備註

CreateType 呼叫方法之後,物件所代表的型別 TypeBuilder 就會完成。After the CreateType method has been called, the type represented by the TypeBuilder object is complete. 在進一步嘗試新增成員或變更類型的其他特性時,會擲回例外狀況。Exceptions are thrown on any further attempts to add members or change other characteristics of the type.

適用於