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
- context
Type: Microsoft.VisualStudio.Data.Schema.Package.Project.DatabaseProjectAddItemDialogContext
The current context for the Add Item dialog box.
- suggestedExt
Type: System.String
The suggested extension.
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IDatabaseProjectAddNewItemParticipant Interface
Microsoft.VisualStudio.Data.Schema.Package.Project Namespace