IMember.Clear Method

Clear deletes all records in the member.

        [C#]
  public void Clear();
      
        [Visual Basic] 
  public Sub Clear() As Void
      
        [Visual RPG]
  BegSr Clear Access(*Public) Type(Void)
      
Parameters

None.

Exceptions
Exception Type Condition

dgException

See table below.

ASNA.DataGate.Common.dgException is thrown to signal normal procedural conditions, in addition to error conditions. The following table summarizes these conditions, and the corresponding value of the dgException.Error property.

Value of dgException.Error Condition

dgEINVARG

The path name referenced by this IMember instance does not locate a valid database object.

dgEmNOLOCK, or dgEmBUSYOBJ

The database provider could not obtained the requisite lock(s) to perform this function, including an "exclusive" lock on the database member object.

dgEsAS400ERROR

The database provider encountered a system-level error. Details provided in the dgException.Message property.

dgEaINVFTOP

This method is not supported for the type of file containing the member object represented by IMember.

Remarks

Clear removes all data records, active and deleted, from the database file member object represented by IMember. DCS does not implement this function but rather invokes the database provider's function to perform the task.

Requirements

Namespace: ASNA.DataGate.Client

Assembly: ASNA DataGate Client

Platforms: Windows Server 2008 R2, Windows Server 2012, Windows 7, Windows 8 Pro, Windows 8.1 Pro

See Also