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 (String)

Generates a unique valid identifier name for a data member using the specified base name.

[Visual Basic]
Overloads Function GenerateUniqueDataMemberName( _
   ByVal baseName As String _
) As String
[C#]
string GenerateUniqueDataMemberName(
   string baseName
);
[C++]
String* GenerateUniqueDataMemberName(
   String* baseName
) = 0;
[JScript]
function GenerateUniqueDataMemberName(
   baseName : String
) : String;

Parameters

baseName
The base name to use for the member name.

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