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

 

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

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

int GetFile(
	int fileID,
	uint grfFlags,
	out uint pitemid,
	out string pbstrFilename
)

Parameters

fileID
Type: System.Int32

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

grfFlags
Type: System.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
Type: System.UInt32

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

pbstrFilename
Type: System.String

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

Return Value

Type: System.Int32

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

Return to top
Show: