IDatabaseProjectAddNewItemParticipant.GenerateUniqueItemName Method

Used to return a unique name for the item to be created.

Namespace:  Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly:  Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)

Syntax

'Declaration
Function GenerateUniqueItemName ( _
    context As DatabaseProjectAddItemDialogContext, _
    suggestedExt As String, _
    suggestedRoot As String, _
    <OutAttribute> ByRef itemName As String, _
    <OutAttribute> ByRef priority As Integer _
) As Boolean
bool GenerateUniqueItemName(
    DatabaseProjectAddItemDialogContext context,
    string suggestedExt,
    string suggestedRoot,
    out string itemName,
    out int priority
)
bool GenerateUniqueItemName(
    DatabaseProjectAddItemDialogContext^ context, 
    String^ suggestedExt, 
    String^ suggestedRoot, 
    [OutAttribute] String^% itemName, 
    [OutAttribute] int% priority
)
abstract GenerateUniqueItemName : 
        context:DatabaseProjectAddItemDialogContext * 
        suggestedExt:string * 
        suggestedRoot:string * 
        itemName:string byref * 
        priority:int byref -> bool 
function GenerateUniqueItemName(
    context : DatabaseProjectAddItemDialogContext, 
    suggestedExt : String, 
    suggestedRoot : String, 
    itemName : String, 
    priority : int
) : boolean

Parameters

  • suggestedRoot
    Type: System.String
    The suggested root of the file name.
  • itemName
    Type: System.String%
    The returned, suggested name for this new item.
  • priority
    Type: System.Int32%
    A lower integer indicates a higher priority. The instance with the highest priority sets the unique item name.

Return Value

Type: System.Boolean
True indicates that this feature can identify a unique name.

.NET Framework Security

See Also

Reference

IDatabaseProjectAddNewItemParticipant Interface

Microsoft.VisualStudio.Data.Schema.Package.Project Namespace