Share via


BaseDocData.OnLoad Method

Called when loading a file.

Namespace:  Microsoft.VisualStudio.Data.Schema.Project.Common.UI
Assembly:  Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)

Syntax

'Declaration
Protected Overridable Function OnLoad ( _
    fileName As String, _
    grfMode As UInteger, _
    readOnly As Integer _
) As Integer
'Usage
Dim fileName As String
Dim grfMode As UInteger
Dim readOnly As Integer
Dim returnValue As Integer

returnValue = Me.OnLoad(fileName, _
    grfMode, readOnly)
protected virtual int OnLoad(
    string fileName,
    uint grfMode,
    int readOnly
)
protected:
virtual int OnLoad(
    String^ fileName, 
    unsigned int grfMode, 
    int readOnly
)
protected function OnLoad(
    fileName : String, 
    grfMode : uint, 
    readOnly : int
) : int
abstract OnLoad : 
        fileName:string * 
        grfMode:uint32 * 
        readOnly:int -> int 
override OnLoad : 
        fileName:string * 
        grfMode:uint32 * 
        readOnly:int -> int 

Parameters

Return Value

Type: System.Int32
Returns VSConstants.S_OK on success.

.NET Framework Security

See Also

Reference

BaseDocData Class

BaseDocData Members

Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace