DocData.LoadDocData Method (String)

Loads the document by using its file name.

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

Syntax

'Declaration
Public Function LoadDocData ( _
    fileName As String _
) As Integer
public int LoadDocData(
    string fileName
)
public:
virtual int LoadDocData(
    String^ fileName
) sealed
abstract LoadDocData : 
        fileName:string -> int  
override LoadDocData : 
        fileName:string -> int
public final function LoadDocData(
    fileName : String
) : int

Parameters

  • fileName
    Type: String

    The file name of the document.

Return Value

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

Implements

IVsPersistDocData2.LoadDocData(String)
IVsPersistDocData.LoadDocData(String)

.NET Framework Security

See Also

Reference

DocData Class

LoadDocData Overload

Microsoft.VisualStudio.Modeling.Shell Namespace