IVsProjectSpecialFiles.GetFile Method

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)

Syntax

'Declaration
Function GetFile ( _
    fileID As Integer, _
    grfFlags As UInteger, _
    <OutAttribute> ByRef pitemid As UInteger, _
    <OutAttribute> ByRef pbstrFilename As String _
) As Integer
int GetFile(
    int fileID,
    uint grfFlags,
    out uint pitemid,
    out string pbstrFilename
)
int GetFile(
    [InAttribute] int fileID, 
    [InAttribute] unsigned int grfFlags, 
    [OutAttribute] unsigned int% pitemid, 
    [OutAttribute] String^% pbstrFilename
)
abstract GetFile : 
        fileID:int * 
        grfFlags:uint32 * 
        pitemid:uint32 byref * 
        pbstrFilename:string byref -> int
function GetFile(
    fileID : int, 
    grfFlags : uint, 
    pitemid : uint, 
    pbstrFilename : String
) : int

Parameters

  • fileID
    Type: Int32

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

  • grfFlags
    Type: 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: UInt32%

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

  • pbstrFilename
    Type: String%

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

Return Value

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

.NET Framework Security

See Also

Reference

IVsProjectSpecialFiles Interface

Microsoft.VisualStudio.Shell.Interop Namespace