CreateOptions CreateOptions CreateOptions CreateOptions Enum

定义

ModelFactory 实例使用,用于指定如何创建新项。Used by a ModelFactory instance to specify how to create a new item.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class CreateOptions
[System.Flags]
public enum CreateOptions
type CreateOptions = 
Public Enum CreateOptions
继承
CreateOptionsCreateOptionsCreateOptionsCreateOptions
属性

字段

InitializeDefaults InitializeDefaults InitializeDefaults InitializeDefaults 1

创建项并要求对象执行任何默认初始化。Creates the item and asks the object to perform any default initialization. 此标志通常在用户正在创建新控件或对象时传入。This flag is generally passed in when a new control or object is being created by a user.

None None None None 0

创建对象,并且不对其执行任何操作。Creates the object and does not perform any operation on it. 在使用 ModelFactory 类创建项时,这是默认选项。This is the default option when creating an item with the ModelFactory class.

适用于