/// <summary> /// Truncates the log for a specified instance during a snapshot session. /// </summary> /// <remarks> /// This function should be called only if the snapshot was created with the /// <see cref="VistaGrbits.ContinueAfterThaw"/> option. Otherwise, the snapshot /// session ends after the call to <see cref="Api.JetOSSnapshotThaw"/>. /// </remarks> /// <param name="snapshot">The snapshot identifier.</param> /// <param name="instance">The instance to truncat the log for.</param> /// <param name="grbit">Options for this call.</param> public static void JetOSSnapshotTruncateLogInstance(JET_OSSNAPID snapshot, JET_INSTANCE instance, SnapshotTruncateLogGrbit grbit) { Api.Check(Api.Impl.JetOSSnapshotTruncateLogInstance(snapshot, instance, grbit)); }
/// <summary> /// Enables log truncation for all instances that are part of the snapshot session. /// </summary> /// <remarks> /// This function should be called only if the snapshot was created with the /// <see cref="VistaGrbits.ContinueAfterThaw"/> option. Otherwise, the snapshot /// session ends after the call to <see cref="Api.JetOSSnapshotThaw"/>. /// </remarks> /// <param name="snapshot">The snapshot identifier.</param> /// <param name="grbit">Options for this call.</param> public static void JetOSSnapshotTruncateLog(JET_OSSNAPID snapshot, SnapshotTruncateLogGrbit grbit) { Api.Check(Api.Impl.JetOSSnapshotTruncateLog(snapshot, grbit)); }