Compartir a través de


IWebClassLibProjectEvents.OnFileAdded Method

Occurs when a file is added.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaration
Function OnFileAdded ( _
    pszFilePath As String, _
    foldersMustBeInProject As Boolean _
) As Integer
int OnFileAdded(
    string pszFilePath,
    bool foldersMustBeInProject
)
int OnFileAdded(
    [InAttribute] String^ pszFilePath, 
    [InAttribute] bool foldersMustBeInProject
)
abstract OnFileAdded : 
        pszFilePath:string * 
        foldersMustBeInProject:bool -> int
function OnFileAdded(
    pszFilePath : String, 
    foldersMustBeInProject : boolean
) : int

Parameters

  • pszFilePath
    Type: String

    The path of the file.

  • foldersMustBeInProject
    Type: Boolean

    true if the folders must be included in the project, otherwise false.

Return Value

Type: Int32
The HRESULT.

.NET Framework Security

See Also

Reference

IWebClassLibProjectEvents Interface

Microsoft.VisualStudio.Shell.Interop Namespace