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
fileId
Type: System.Int32The __PSFFILEID of the file.
flags
Type: System.UInt32The __PSFFLAGS of the file.
itemid
Type: System.UInt32%[out] The ID of the node in the hierarchy, or VSITEMID_NIL if the file does not exist.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.