Читати англійською Редагувати

Поділитися через


ModelItem.BeginEdit Method

Definition

Opens an editing scope for the designer.

Overloads

BeginEdit()

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

BeginEdit(Boolean)

Opens an editing scope for the designer.

BeginEdit(String)

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

BeginEdit(String, Boolean)

Opens an editing scope for the designer.

BeginEdit()

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

C#
public abstract System.Activities.Presentation.Model.ModelEditingScope BeginEdit();

Returns

A ModelEditingScope, which must be either completed or reverted.

Remarks

An editing scope allows multiple changes to the model to be applied as a single transaction. All of the changes made within the editing scope can be reverted at any time before the transaction is completed.

Editing scopes are global to the designer. An editing scope can be created for any item in the designer; you do not need to create an editing scope for the specific item you are changing.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginEdit(Boolean)

Opens an editing scope for the designer.

C#
public virtual System.Activities.Presentation.Model.ModelEditingScope BeginEdit(bool shouldApplyChangesImmediately);

Parameters

shouldApplyChangesImmediately
Boolean

true to indicate that the changes should be applied immediately; otherwise, false.

Returns

A ModelEditingScope, which must be either completed or reverted.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginEdit(String)

Opens an editing scope for the designer. After an editing scope is open, all changes across all objects will be saved into the scope until the transaction is completed or reverted. Editing scopes can be nested, but must be committed in order.

C#
public abstract System.Activities.Presentation.Model.ModelEditingScope BeginEdit(string description);

Parameters

description
String

An optional description of the change. This will be set into the Description property of the editing scope.

Returns

A ModelEditingScope, which must be either completed or reverted.

Remarks

An editing scope allows multiple changes to the model to be applied as a single transaction. All of the changes made within the editing scope can be reverted at any time before the transaction is completed.

Editing scopes are global to the designer. An editing scope can be created for any item in the designer; you do not need to create an editing scope for the specific item you are changing.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

BeginEdit(String, Boolean)

Opens an editing scope for the designer.

C#
public virtual System.Activities.Presentation.Model.ModelEditingScope BeginEdit(string description, bool shouldApplyChangesImmediately);

Parameters

description
String

An optional description of the change. This will be set into the Description property of the editing scope.

shouldApplyChangesImmediately
Boolean

true to indicate that the changes should be applied immediately; otherwise, false.

Returns

A ModelEditingScope, which must be either completed or reverted.

Applies to

.NET Framework 4.8.1 та інші версії
Продукт Версії
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1