DocData.LoadDocData Method (String, Boolean)

Loads the document by using its file name.

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

Syntax

'Declaration
Protected Overridable Function LoadDocData ( _
    fileName As String, _
    isReload As Boolean _
) As Integer
protected virtual int LoadDocData(
    string fileName,
    bool isReload
)
protected:
virtual int LoadDocData(
    String^ fileName, 
    bool isReload
)
abstract LoadDocData : 
        fileName:string * 
        isReload:bool -> int  
override LoadDocData : 
        fileName:string * 
        isReload:bool -> int
protected function LoadDocData(
    fileName : String, 
    isReload : boolean
) : int

Parameters

  • isReload
    Type: System.Boolean

    true when this load is caused by an external file change.

Return Value

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

Remarks

This method calls Load, which loads the document.

.NET Framework Security

See Also

Reference

DocData Class

LoadDocData Overload

Microsoft.VisualStudio.Modeling.Shell Namespace