ProjectNode.GetFile Method

Queries for special files and optionally creates them.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)

Syntax

'宣言
Public Overridable Function GetFile ( _
    fileId As Integer, _
    flags As UInteger, _
    <OutAttribute> ByRef itemid As UInteger, _
    <OutAttribute> ByRef fileName As String _
) As Integer
'使用
Dim instance As ProjectNode
Dim fileId As Integer
Dim flags As UInteger
Dim itemid As UInteger
Dim fileName As String
Dim returnValue As Integer

returnValue = instance.GetFile(fileId, _
    flags, itemid, fileName)
public virtual int GetFile(
    int fileId,
    uint flags,
    out uint itemid,
    out string fileName
)
public:
virtual int GetFile(
    int fileId, 
    unsigned int flags, 
    [OutAttribute] unsigned int% itemid, 
    [OutAttribute] String^% fileName
)
public function GetFile(
    fileId : int, 
    flags : uint, 
    itemid : uint, 
    fileName : String
) : int

Parameters

  • fileName
    Type: System.String%

    [out] The name of the file, or the empty string if the file does not exist.

Return Value

Type: System.Int32

When overridden by derived classes, S_OK or an error code.

Implements

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

Remarks

By default this method sets itemid to VSITEMID_NIL and fileName to the empty string, and returns E_NOTIMPL.

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace