Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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.