OK, let me fill you in more on what I'm trying to do and we'll see if we can crack this!
I changed to use the Key property, but now it dies on the MyBase.ProgressSubtaskComplete() line with "Value of '1' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value"
Here is the chunk of my code:
For Each objTypedList As TypedLists.TypedListDefinition In MyBase.TypedLists
For Each objDictionaryEntry As System.Collections.DictionaryEntry In objTypedList.EntityAliases
Dim objEntityAlias As TypedLists.EntityAlias = DirectCast(objDictionaryEntry.Key, TypedLists.EntityAlias)
MyBase.ProgressSubtaskStart("Processing TypedList EntityAlias: " & objTypedList.Name & "." & objEntityAlias.Alias)
objEntityAlias.Alias = Left(objEntityAlias.Alias, 1).ToLower & Mid(objEntityAlias.Alias, 2)
Next
MyBase.ProgressSubtaskComplete()
Next
Essentially what I'm trying to do is as follows...
When creating a Typed List in the designer I set up the fields I want in the "Fields Mapped On Entity Fields" tab. There is a column called "Field Alias" and this contains the name of the .NET Properties that will be created. I'm trying to rename those with my plug-in.
I've had no problems renaming the field names on the standard Entities - that code works perfectly - I'm just a bit stuck trying to find the right properties on the TypedList object!