Condividi tramite


Metodo 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.

Spazio dei nomi: Microsoft.Data.Entity.Design.Extensibility
Assembly: Microsoft.Data.Entity.Design.Extensibility (in microsoft.data.entity.design.extensibility.dll)

Utilizzo

Sintassi

'Dichiarazione
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

Parametri

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

Valore restituito

An EntityDesignerChangeScope object.

Osservazioni

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.

Sicurezza dei thread

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è invece garantita la sicurezza dei membri dell'istanza.

Piattaforme

Piattaforme di sviluppo

Windows XP Home Edition, Windows XP Professional, Windows Server 2003 , Windows Server 2008 e Windows 2000

Piattaforme di destinazione

Vedere anche

Riferimento

Classe PropertyExtensionContext
Membri PropertyExtensionContext
Spazio dei nomi Microsoft.Data.Entity.Design.Extensibility

Altre risorse

Visual Studio Extensibility Developer Center
Developing Visual Studio Extensions