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
- fileName
Type: System.String
The file that is loading.
- grfMode
Type: System.UInt32
The mode. Not used.
- readOnly
Type: System.Int32
Not used.
Return Value
Type: System.Int32
Returns VSConstants.S_OK on success.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Common.UI Namespace