ObjectStateManager::GetObjectStateEntry Method (Object^)
.NET Framework (current version)
Returns an ObjectStateEntry for the specified object.
Assembly: System.Data.Entity (in System.Data.Entity.dll)
Parameters
- entity
-
Type:
System::Object^
The Object to which the retrieved ObjectStateEntry belongs.
Return Value
Type: System.Data.Objects::ObjectStateEntry^The corresponding ObjectStateEntry for the given Object.
| Exception | Condition |
|---|---|
| InvalidOperationException | No entity for the specified Object exists in the ObjectStateManager. |
Use the TryGetObjectStateEntry(Object^, ObjectStateEntry^%) method to return an ObjectStateEntry object without having to handle the InvalidOperationException raised by the GetObjectStateEntry(Object^) method.
.NET Framework
Available since 3.5
Available since 3.5
Show: