Share via


IWebFileCtxService.IsDocumentInProject(String, UInt32) Method

Definition

Adds a file, if it exists, to the project.

public:
 int IsDocumentInProject(System::String ^ pszFilePath, [Runtime::InteropServices::Out] System::UInt32 % pItemid);
int IsDocumentInProject(std::wstring const & pszFilePath, [Runtime::InteropServices::Out] unsigned int & pItemid);
public int IsDocumentInProject (string pszFilePath, out uint pItemid);
abstract member IsDocumentInProject : string * uint32 -> int
Public Function IsDocumentInProject (pszFilePath As String, ByRef pItemid As UInteger) As Integer

Parameters

pszFilePath
String

[in] Pointer to a string containing the file name. May be relative to the current directory (.).

pItemid
UInt32

[out] Pointer to the item identifier assigned to the item, a VSITEMID. Set to VSITEMID_NIL if there is an error.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to