Share via


BaseDocData.OnInitNew Method

Called on new document initialization.

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 OnInitNew ( _
    nFormatIndex As UInteger _
) As Integer
'Usage
Dim nFormatIndex As UInteger
Dim returnValue As Integer

returnValue = Me.OnInitNew(nFormatIndex)
protected virtual int OnInitNew(
    uint nFormatIndex
)
protected:
virtual int OnInitNew(
    unsigned int nFormatIndex
)
protected function OnInitNew(
    nFormatIndex : uint
) : int
abstract OnInitNew : 
        nFormatIndex:uint32 -> int 
override OnInitNew : 
        nFormatIndex:uint32 -> int 

Parameters

Return Value

Type: System.Int32
Returns VSConstants.S_OK.

.NET Framework Security

See Also

Reference

BaseDocData Class

BaseDocData Members

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