ProjectNode.GetCurFile Method

Gets the current active file.

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

Syntax

'宣言
Public Overridable Function GetCurFile ( _
    <OutAttribute> ByRef name As String, _
    <OutAttribute> ByRef formatIndex As UInteger _
) As Integer
'使用
Dim instance As ProjectNode
Dim name As String
Dim formatIndex As UInteger
Dim returnValue As Integer

returnValue = instance.GetCurFile(name, _
    formatIndex)
public virtual int GetCurFile(
    out string name,
    out uint formatIndex
)
public:
virtual int GetCurFile(
    [OutAttribute] String^% name, 
    [OutAttribute] unsigned int% formatIndex
)
public function GetCurFile(
    name : String, 
    formatIndex : uint
) : int

Parameters

  • formatIndex
    Type: System.UInt32%

    Indicates the on-disk format, such as UTF-8, Unicode or MBCS

Return Value

Type: System.Int32

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

Implements

IPersistFileFormat.GetCurFile(String%, UInt32%)

Permissions

See Also

Reference

ProjectNode Class

ProjectNode Members

Microsoft.VisualStudio.Package Namespace