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
name
Type: System.String%Name of the file.
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
- 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.