I am creating new gdb file from one GDB file. I am trying to assign the domain of the fields in newly created feature class from the gdb file.
How to assign the domain to a field because I tried "pfieldedit.domain_2 = FeatClass.Fields.get_Field(i).Domain. It shows the domain values while I am creating the new feature class but when I checked the data I did not found any domain in fields of the feature class.
You'll need to modify the schema for the dataset via IClassSchemaEdit to persist the change. This should be documented on the following page.
Assigning domains to fields
An alternative method would be to call the Assign Domain to field tool through the IGeoProcessor object. There are many examples in the help or on the internet showing how to call such tools.