vb.net - ResultPropertyCollection does not contain a definition for Item. C# -


so rewriting program vb c# , running difficult using directoryservices. in vb code looks

dim myresultpropertyvaluecollection resultpropertyvaluecollection = myresultpropertycollection.item(fieldname)  

how may c# equivalent? in c# trying

resultpropertyvaluecollection resultpropertyvaluecollection = resultpropertycollection.item(fieldname);  

however getting error stating resultpropertycollection not contain definition item.

thanks

nevermind found it.

resultpropertyvaluecollection resultpropertyvaluecollection = resultpropertycollection[fieldname]; 

Comments