Partager via


Méthode PropertyExtensionContext.CreateChangeScope

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

Espace de noms: Microsoft.Data.Entity.Design.Extensibility
Assembly : Microsoft.Data.Entity.Design.Extensibility (dans microsoft.data.entity.design.extensibility.dll)

Utilisation

Syntaxe

'Déclaration
Public MustOverride Function CreateChangeScope ( _
    undoRedoDescription As String _
) As EntityDesignerChangeScope
public abstract EntityDesignerChangeScope CreateChangeScope (
    string undoRedoDescription
)
public:
virtual EntityDesignerChangeScope^ CreateChangeScope (
    String^ undoRedoDescription
) abstract
public abstract EntityDesignerChangeScope CreateChangeScope (
    String undoRedoDescription
)
public abstract function CreateChangeScope (
    undoRedoDescription : String
) : EntityDesignerChangeScope

Paramètres

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

Valeur de retour

An EntityDesignerChangeScope object.

Notes

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.

Sécurité des threads

Tous les membres publics statiques (Partagés dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.

Plateformes

Plateformes de développement

Windows XP Édition familiale, Windows XP Professionnel, Windows Server 2003 , Windows Server 2008 et Windows 2000

Plateformes cibles

Voir aussi

Référence

Classe PropertyExtensionContext
Membres PropertyExtensionContext
Espace de noms Microsoft.Data.Entity.Design.Extensibility

Autres ressources

Visual Studio Extensibility Developer Center
Developing Visual Studio Extensions