IVsProjectSpecialFiles.GetFile(Int32, UInt32, UInt32, String) Method

Definition

Gets the item identifier, name, and path of a special project file.

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

Parameters

fileID
Int32

[in] The type of special file. A value from the __PSFFILEID enumeration.

grfFlags
UInt32

[in] Flags indicating whether or not to create the file, or whether the full path has been provided. A value from the __PSFFLAGS enumeration.

pitemid
UInt32

[out] Pointer to the VSITEMID of the special file.

pbstrFilename
String

[out] Pointer to a string containing the name of the file and, optionally, the full path.

Returns

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

Applies to