Activity.ForceDefaultIdFormat 属性

定义

获取或设置一个值,该值在始终用于定义默认 ID 格式时 DefaultIdFormat 表示反省。

public:
 static property bool ForceDefaultIdFormat { bool get(); void set(bool value); };
public static bool ForceDefaultIdFormat { get; set; }
static member ForceDefaultIdFormat : bool with get, set
Public Shared Property ForceDefaultIdFormat As Boolean

属性值

true 如果始终使用 , DefaultIdFormat则为 ;否则为 false

注解

通常,如果定义了, ParentId 则其格式确定当前 Activity使用的格式。 但是,如果 ForceDefaultFormat 设置为 true,则 ID 格式始终由 DefaultIdFormat 属性定义,即使 ParentId 已定义 ID 格式,并且父级的格式也不同。

适用于