If you look into the definition of the enum SecurityProfileOptions
you will find both that the enum is marked as [Flags]
and it has the following values defined:
BasicProfile = 1,
RetainSafePrivate = 2,
RetainUIDs = 4,
RetainDeviceIdent = 8,
RetainPatientChars = 16, // 0x0010
RetainLongFullDates = 32, // 0x0020
RetainLongModifDates = 64, // 0x0040
CleanDesc = 128, // 0x0080
CleanStructdCont = 256, // 0x0100
CleanGraph = 512, // 0x0200
Short answer to your question: you can make use of the [Flags] attribute to store more than a value of an enum at a time by using the bitwise or operand like it follows:
SecurityProfileOptions.BasicProfile | SecurityProfileOptions.RetainDeviceIndent
I highly suggest you to look better at this question.
Back to your specific question, the usage of the profile you should be making is the following one:
DicomAnonymizer.SecurityProfile securityProfile = DicomAnonymizer.SecurityProfile.LoadProfile(null, DicomAnonymizer.SecurityProfileOptions.BasicProfile | DicomAnonymizer.SecurityProfileOptions.CleanDesc |... [add as many as you want from that enum]);
DicomAnonymizer dicomAnonymizer = new DicomAnonymizer(securityProfile);