PropertyExtensionContext.CreateChangeScope Method

Creates an EntityDesignerChangeScope object and sets the string that will appear in the dropdown lists for the Undo and Redo buttons in Visual Studio.

Namespace:  Microsoft.Data.Entity.Design.Extensibility
Assembly:  Microsoft.Data.Entity.Design.Extensibility (in Microsoft.Data.Entity.Design.Extensibility.dll)

Syntax

'Declaration
Public MustOverride Function CreateChangeScope ( _
    undoRedoDescription As String _
) As EntityDesignerChangeScope
'Usage
Dim instance As PropertyExtensionContext
Dim undoRedoDescription As String
Dim returnValue As EntityDesignerChangeScope

returnValue = instance.CreateChangeScope(undoRedoDescription)
public abstract EntityDesignerChangeScope CreateChangeScope(
    string undoRedoDescription
)
public:
virtual EntityDesignerChangeScope^ CreateChangeScope(
    String^ undoRedoDescription
) abstract
public abstract function CreateChangeScope(
    undoRedoDescription : String
) : EntityDesignerChangeScope

Parameters

  • undoRedoDescription
    Type: System.String
    The string that will appear in the dropdown lists for the Undo and Redo buttons in Visual Studio.

Return Value

Type: Microsoft.Data.Entity.Design.Extensibility.EntityDesignerChangeScope
An EntityDesignerChangeScope object.

Remarks

In a Visual Studio extension, the CreateChangeScope() method initializes an instance of the EntityDesignerChangeScope class. The EntityDesignerChangeScope class allows you to create a unit of work within the extension that can be undone or redone with the Undo and Redo buttons in Visual Studio.

For more information about extending the functionality of the ADO.NET Entity Data Model Tools, see Extending the Entity Data Model Tools and ADO.NET Entity Data Model Designer Extension Starter Kit.

Permissions

See Also

Reference

PropertyExtensionContext Class

PropertyExtensionContext Members

Microsoft.Data.Entity.Design.Extensibility Namespace

Other Resources

Visual Studio Extensibility Developer Center

Developing Visual Studio Extensions