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
- nFormatIndex
Type: System.UInt32
The format index
Return Value
Type: System.Int32
Returns VSConstants.S_OK.
.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