Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Contains the mapping of transactions to partitions.
Inheritance Hierarchy
Object
Microsoft.VisualStudio.Modeling.Context
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.11.0.dll)
Syntax
'Declaration
Public NotInheritable Class Context _
Implements IDisposable
public sealed class Context : IDisposable
public ref class Context sealed : IDisposable
[<Sealed>]
type Context =
class
interface IDisposable
end
public final class Context implements IDisposable
The Context type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
![]() |
Context | Initializes a new instance of the Context class. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
Id | Gets or sets the ID of this context. |
![]() |
InRedo | Indicates whether the context is redoing an operation. |
![]() |
InUndo | Indicates whether the context is undoing an operation. |
![]() |
InUndoRedoOrRollback | Indicates whether the context is undoing an operation, redoing an operation, or rolling back a transaction. |
![]() |
Partitions | Gets the partitions that the context uses. |
![]() |
Store | Gets the store to which the context belongs. |
![]() |
UndoManager | Gets the undo manager for the context. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
AddPartition | Adds a partition to the context. |
![]() |
Delete | Deletes a partition from the context. |
![]() |
Dispose | Releases all resources that the Context used. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
RemovePartition | Removes a partition from the context. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.gif)
.gif)