'Declaration
<CanBeNullAttribute()> Public Overloads Function GetObject( _ ByVal oid As OID _ ) As ADTObject
[CanBeNull()] public: ADTObject^ GetObject( OID^ oid )
Parameters
- oid
Return Value
The requested object.
'Declaration
<CanBeNullAttribute()> Public Overloads Function GetObject( _ ByVal oid As OID _ ) As ADTObject
[CanBeNull()] public: ADTObject^ GetObject( OID^ oid )
Exception | Description |
---|---|
ArcanaDevelopment.adTempus.Shared.PermissionDeniedException | Thrown if the caller does not have permission for the requested object. |
ArcanaDevelopment.adTempus.Shared.ObjectNotFoundException | Thrown if the object does not exist |
All fetches of an object through this DataContext (or through objects that belong to it) are guaranteed to return the same copy of the object for as long as the DataContext exists.
This method fetches the requested object and all dependent objects. For example, fetching a Job fetches back to the client all steps, conditions, triggers, etc. In scenarios where the dependent objects are not required (for example, you only are going to be listing the job names), use GetObject(OID,ObjectFetchOptions) to fetch only a "stub" of the object on the initial fetch. This is more efficient as less data needs to be retrieved from the database and returned to the client.