TypeBuilder.IsCreated TypeBuilder.IsCreated TypeBuilder.IsCreated TypeBuilder.IsCreated Method

定义

返回一个值,该值指示是否已创建当前的动态类型。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

返回

如果已调用 CreateType() 方法,则为 true;否则为 falsetrue if the CreateType() method has been called; otherwise, false.

注解

调用方法后,由对象表示的类型是完整的。 TypeBuilder CreateTypeAfter 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.

适用于