I am working on a program that searches Active Directory. I have a feature working right now where when the user searches for something a object is created from a class I desgined. This object will contain various information about what to search for in active directory.

I want to create a property in this class that will return and set only certian strings. I know I could use a select case on the value to make sure it's correct however using this method when I go to set the property I will be going back and forth in my code to make sure the strings are exactlly the same so no errors are produced. I want intellisence to automaticly display valid values which can be set.

I was thinking about using an enumeration however an enuermation can only contain numbers and no strings. So I created a function that will accept the enuermation and returns a string based one what is selected in the enumeration. This just dosen't work well inside my class.

What do you guys suggest I try doing.