# PetscObjectContainerSetUserDestroy

Sets name of the user destroy function.

### Synopsis

    #include "petsc.h"
    PetscErrorCode PETSC_DLLEXPORT PetscObjectContainerSetUserDestroy(PetscObjectContainer obj, PetscErrorCode (*des)(void*))

Collective on PetscObjectContainer

### Input Parameter

| obj | - an object that was created with PetscObjectContainerCreate()
| des | - name of the user destroy function

### See Also

PetscObjectContainerDestroy()

Level:advanced
Location:src/sys/src/objects/inherit.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages