BasicDesignerLoader.ReloadOptions 枚举


定义 Reload(BasicDesignerLoader+ReloadOptions) 方法的行为。Defines the behavior of the Reload(BasicDesignerLoader+ReloadOptions) method. 可以使用按位 OR 运算符组合这些标志。These flags can be combined using the bitwise OR operator.

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

protected: enum class BasicDesignerLoader::ReloadOptions
protected enum BasicDesignerLoader.ReloadOptions
Protected Enum BasicDesignerLoader.ReloadOptions


Default 0

设计器加载程序在重新加载前会刷新更改,但它不会强制重新加载,如果发生加载错误,它也不会将 Modified 属性设置为 trueThe designer loader flushes changes before reloading, but it does not force a reload, and it also does not set the Modified property to true if load errors occur.

Force 2

设计器加载程序强制发生重新加载。The designer loader forces the reload to occur. 通常,只有在 IsReloadNeeded() 方法返回 true 时,才会发生重新加载。Normally, a reload occurs only if the IsReloadNeeded() method returns true. 此标志会跳过调用此方法,并且总是会执行重新加载。This flag bypasses calling this method and always performs the reload.

ModifyOnError 1

如果发生加载错误,设计器加载程序会将 Modified 属性设置为 trueThe designer loader will set the Modified property to true if load errors occur. 如果您希望刷新加载程序以覆盖有错的持久性状态,此标志很有用。This flag is useful if you want a flush of the loader to overwrite persistent state that had errors.

NoFlush 4

设计器加载程序在重新加载前会放弃所有更改。The designer loader abandons any changes before reloading.