IDatabaseProjectAddNewItemParticipant.ResolveAddItemDialogFileConflict Method
When a file is added through the Add Item dialog box and there is a file conflict with something already in the system, you have the option of using this routine to create a new non-conflicting file name.
Namespace: Microsoft.VisualStudio.Data.Schema.Package.Project
Assembly: Microsoft.VisualStudio.Data.Schema.Package (in Microsoft.VisualStudio.Data.Schema.Package.dll)
Syntax
'Declaration
Function ResolveAddItemDialogFileConflict ( _
conflictingFile As IDatabaseFileNode, _
proposedFileName As String _
) As String
string ResolveAddItemDialogFileConflict(
IDatabaseFileNode conflictingFile,
string proposedFileName
)
String^ ResolveAddItemDialogFileConflict(
IDatabaseFileNode^ conflictingFile,
String^ proposedFileName
)
abstract ResolveAddItemDialogFileConflict :
conflictingFile:IDatabaseFileNode *
proposedFileName:string -> string
function ResolveAddItemDialogFileConflict(
conflictingFile : IDatabaseFileNode,
proposedFileName : String
) : String
Parameters
- conflictingFile
Type: Microsoft.VisualStudio.Data.Schema.Package.Project.IDatabaseFileNode
The file already in Solution Explorer.
- proposedFileName
Type: System.String
The proposed file name, which is conflicting.
Return Value
Type: System.String
The proposed, non-conflicting file 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