DocData.GetCurFile Method

Gets the file name of the document.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

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

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

Parameters

Return Value

Type: System.Int32

S_OK if the method succeeds; otherwise, it returns an error code.

Implements

IPersistFileFormat.GetCurFile(String%, UInt32%)

Remarks

This method implements the IPersistFileFormat interface.

Permissions

See Also

Reference

DocData Class

DocData Members

Microsoft.VisualStudio.Modeling.Shell Namespace