Generates a unique valid identifier name for a data member of the specified type.
[Visual Basic] Overloads Function GenerateUniqueDataMemberName( _ ByVal memberType As ICodeClass _ ) As String [C#] string GenerateUniqueDataMemberName( ICodeClass memberType ); [C++] String* GenerateUniqueDataMemberName( ICodeClass* memberType ) = 0; [JScript] function GenerateUniqueDataMemberName( memberType : ICodeClass ) : String;
The purpose of this is to allow designers to create names of instance variables that won't conflict with existing members. It is most common for the language service to return a name of the form "className[N]" where [N] is a number starting at 1. For example "button1", "button2", etc..
ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace | ICodeSourceFile.GenerateUniqueDataMemberName Overload List