Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ClientApi::SetIgnoreFile( const char * )

Sets the full path name of the ignore file to be used for this connection.

Virtual? | No |
Class | `ClientApi` |
Arguments | `const char *c` | the full path name of the new ignore file
Returns | `void` |

## Notes

`SetIgnoreFile()` does not permanently set the `P4IGNORE` value in the environment or registry. The new setting applies only to commands executed by calling this `ClientApi` object’s `Run()` method.

## See also

`ClientApi::DefineIgnoreFile()`> <<clientapi.getignore,`ClientApi::GetIgnore()` `ClientApi::GetIgnoreFile()`

## Example

The following example sets a ticket file location by calling `SetIgnoreFile()`.

    # include "clientapi.h"

    int main()
    {
        ClientApi client;

        client.SetIgnoreFile( ".p4ignore" );
    }

Your search for returned results