NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ICodeSourceFile.GenerateUniqueDataMemberName (ICodeClass)

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;

Parameters

memberType
The type of the member to generate a name for.

Remarks

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..

See Also

ICodeSourceFile Interface | ICodeSourceFile Members | System.ComponentModel.Design.CodeModel Namespace | ICodeSourceFile.GenerateUniqueDataMemberName Overload List