共用方式為


IDatabaseProjectAddNewItemParticipant.ResolveAddItemDialogFileConflict 方法

透過 [加入項目] 對話方塊加入檔案時,若有檔案與系統中的現有項目發生衝突,您可以選擇使用這個常式來建立新的非衝突檔名。

命名空間:  Microsoft.VisualStudio.Data.Schema.Package.Project
組件:  Microsoft.VisualStudio.Data.Schema.Package (在 Microsoft.VisualStudio.Data.Schema.Package.dll 中)

語法

'宣告
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

參數

  • proposedFileName
    型別:System.String
    提議的檔名,有衝突。

傳回值

型別:System.String
提議的非衝突檔名。

.NET Framework 安全性

請參閱

參考

IDatabaseProjectAddNewItemParticipant 介面

Microsoft.VisualStudio.Data.Schema.Package.Project 命名空間