Share via


DocData.InitNew Method

Initializes the document.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll)

Syntax

'Declaration
Public Function InitNew ( _
    formatIndex As UInteger _
) As Integer
public int InitNew(
    uint formatIndex
)
public:
virtual int InitNew(
    unsigned int formatIndex
) sealed
abstract InitNew : 
        formatIndex:uint32 -> int  
override InitNew : 
        formatIndex:uint32 -> int
public final function InitNew(
    formatIndex : uint
) : int

Parameters

  • formatIndex
    Type: UInt32

    The index of the format that represents the document.

Return Value

Type: Int32
S_OK if the method succeeds; otherwise, it returns an error code.

Implements

IPersistFileFormat.InitNew(UInt32)

Remarks

We only support a single file format so the parameter is redundant.

.NET Framework Security

See Also

Reference

DocData Class

Microsoft.VisualStudio.Modeling.Shell Namespace