Shunde.NET Framework Class Library

DBObject.GetObject Method (Int32, Type)

Gets and populates a single DBObject of the given type with the supplied ID

public static DBObject GetObject(
   Int32 id,
   Type objectType
);

Return Value

Returns a fully populated DBObject

Remarks

Use this method when you know the type as it is faster than GetObject

Exceptions

Exception Type Condition
ObjectDoesNotExistException Thrown if the specified ID is not found in the database.

See Also

DBObject Class | Shunde.Framework Namespace | DBObject.GetObject Overload List