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: StringThe path of the file.
foldersMustBeInProject
Type: Booleantrue if the folders must be included in the project, otherwise false.
Return Value
Type: Int32
The HRESULT.
.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.