DocData.Load Method (String, UInt32, Int32)

Loads the document into memory.

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

Syntax

'宣言
Public Function Load ( _
    fileName As String, _
    mode As UInteger, _
    isReadOnly As Integer _
) As Integer
'使用
Dim instance As DocData
Dim fileName As String
Dim mode As UInteger
Dim isReadOnly As Integer
Dim returnValue As Integer

returnValue = instance.Load(fileName, _
    mode, isReadOnly)
public int Load(
    string fileName,
    uint mode,
    int isReadOnly
)
public:
virtual int Load(
    String^ fileName, 
    unsigned int mode, 
    int isReadOnly
) sealed
public final function Load(
    fileName : String, 
    mode : uint, 
    isReadOnly : int
) : int

Parameters

Return Value

Type: System.Int32

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

Implements

IPersistFileFormat.Load(String, UInt32, Int32)

Remarks

This method implements the IVsPersistDocData2 interface.

Permissions

See Also

Reference

DocData Class

DocData Members

Load Overload

Microsoft.VisualStudio.Modeling.Shell Namespace