Thanks Guys for your value replies....Please let me clarify my question in order to give you more details and let you help me more...I have created a SDE workspace using the following code:
Dim pPropertySet As IPropertySet
pPropertySet = New PropertySet
With pPropertySet
.SetProperty("Server", Server)
.SetProperty("Instance", Instance)
.SetProperty("User", Username)
.SetProperty("Password", Password)
.SetProperty("Version", Version)
End With
Dim sdeWrkspcFactroy As IWorkspaceFactory
sdeWrkspcFactroy = New SdeWorkspaceFactory
pWS = sdeWrkspcFactroy.Open(pPropertySet, 0)
Moreover, this Workspace is containing more than 10 datasets and each Dataset may contain many FeatureClasses....So I have a Workspace created through a connection (PropertySet) and this Workspace contains many DataSets and each Dataset contains many FeatureClasses...@ Neil: I hope to get some sample code from your side@ mukundbtech: I think that your code related to retrieve all Datasets in the Workspace and QI with FeatureClass type will not be a solution to me since there is a lot of FeatureClasses in each Dataset in the Workspace. In related to the second part of your code, I thank you very much but what I need and it is not mentioned in my first post which is really my fault,What I need is to list the fields of each FeatureClass that are assigned domains with the domains names..appreciate your support...