/// <summary> /// Sets the fields of the object from a native JET_OBJECTINFO struct. /// </summary> /// <param name="value"> /// The native objectlist to set the values from. /// </param> internal void SetFromNativeObjectinfo(ref NATIVE_OBJECTINFO value) { unchecked { this.objtyp = (JET_objtyp)value.objtyp; this.grbit = (ObjectInfoGrbit)value.grbit; this.flags = (ObjectInfoFlags)value.flags; this.cRecord = (int)value.cRecord; this.cPage = (int)value.cPage; } }
/// <summary> /// Retrieves information about database objects. /// </summary> /// <param name="sesid">The session to use.</param> /// <param name="dbid">The database to use.</param> /// <param name="objtyp">The type of the object.</param> /// <param name="szObjectName">The object name about which to retrieve information.</param> /// <param name="objectinfo">Filled in with information about the objects in the database.</param> public static void JetGetObjectInfo( JET_SESID sesid, JET_DBID dbid, JET_objtyp objtyp, string szObjectName, out JET_OBJECTINFO objectinfo) { Api.Check(Impl.JetGetObjectInfo(sesid, dbid, objtyp, szObjectName, out objectinfo)); }