DocData.InitNew Method
Initializes the document.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'宣言
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: System.UInt32
The index of the format that represents the document.
Return Value
Type: System.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
- 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.