Expand Minimize

MI_Application_NewSerializer function

Retrieves a serializer object that can then be used to serialize instances and classes into various different formats.

Syntax


MI_Result MI_INLINE MI_Result MI_Application_NewSerializer(
  _Inout_  MI_Application *application,
  MI_Uint32 flags,
  _In_     MI_Char *format,
  _Out_     *serializer
);

Parameters

application [in, out]

A pointer to a handle returned from the MI_Application_Initialize function.

flags

This parameter must be 0.

format [in]

A string that contains which serializer to use. This parameter must be L"MI_XML".

serializer [out]

The returned serializer object.

Return value

Return codeDescription
MI_RESULT_OK

The operation succeeded.

MI_RESULT_SERVER_LIMITS_EXCEEDED

There is not enough memory to complete the request.

MI_RESULT_INVALID_PARAMETER

One or more parameters passed to the function were not valid.

MI_RESULT_FAILED

A failure not covered by other MI_Result error codes.

 

Remarks

Serializers are used to persist MI_Instance and MI_Class objects. A deserializer is then used to re-create the object from its stored form.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Redistributable

Windows Management Framework 3.0 on Windows Server 2008 R2 with SP1, Windows 7 with SP1, and Windows Server 2008 with SP2

Header

Mi.h

 

 

Show:
© 2014 Microsoft