Instructs the object to initialize itself in the untitled state.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Overridable Function InitNew ( _
formatIndex As UInteger _
) As Integer
'使用
Dim instance As ProjectNode
Dim formatIndex As UInteger
Dim returnValue As Integer
returnValue = instance.InitNew(formatIndex)
public virtual int InitNew(
uint formatIndex
)
public:
virtual int InitNew(
unsigned int formatIndex
)
public function InitNew(
formatIndex : uint
) : int
Parameters
formatIndex
Type: System.UInt32Index value that indicates the current format of the file. The formatIndex parameter controls the beginning format of the file. The caller should pass DEF_FORMAT_INDEX if the object is to choose its default format. If this parameter is non-zero, then it is interpreted as the index into the list of formats, as returned by a call to GetFormatList. An index value of 0 indicates the first format, 1 the second format, and so on.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IPersistFileFormat.InitNew(UInt32)
Remarks
Implementation of InitNew.
Permissions
- 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.