Language

CimMofDeserializer.DeserializeClasses method (Byte[], UInt32, IEnumerable<CimClass>, OnClassNeeded, GetIncludedFileContent)

Deserializes CIM classes based on serialized data, a collection of parent CIM classes, and callbacks.

Namespace:   Microsoft.Management.Infrastructure.Serialization
Assembly:  Microsoft.Management.Infrastructure (in Microsoft.Management.Infrastructure.dll)

Syntax

public IEnumerable<CimClass> DeserializeClasses(
    byte[] serializedData,
    ref uint offset,
    IEnumerable<CimClass> classes,
    OnClassNeeded onClassNeededCallback,
    GetIncludedFileContent getIncludedFileCallback
)
public:
IEnumerable<CimClass^>^ DeserializeClasses(
    array<unsigned char>^ serializedData,
    unsigned int% offset,
    IEnumerable<CimClass^>^ classes,
    OnClassNeeded^ onClassNeededCallback,
    GetIncludedFileContent^ getIncludedFileCallback
)
member DeserializeClasses : 
        serializedData:byte[] *
        offset:uint32 byref *
        classes:IEnumerable<CimClass> *
        onClassNeededCallback:OnClassNeeded *
        getIncludedFileCallback:GetIncludedFileContent -> IEnumerable<CimClass>
Public Function DeserializeClasses (
    serializedData As Byte(),
    ByRef offset As UInteger,
    classes As IEnumerable(Of CimClass),
    onClassNeededCallback As OnClassNeeded,
    getIncludedFileCallback As GetIncludedFileContent
) As IEnumerable(CimClass)

Parameters

  • serializedData
    Type: System.Byte[]

    A buffer that contains the serialized data.

  • offset
    Type: System.UInt32

    The byte offset to the location at which to begin reading the data. When the method returns, the offset will be pointing to the next byte after the deserialized classes.

  • onClassNeededCallback
    Type: OnClassNeeded

    A callback function used to provide a requested class object during deserialization.

  • getIncludedFileCallback
    Type: GetIncludedFileContent

    A callback function used to provide the file buffer contents of a specified file.

Return value

Type: System.Collections.Generic.IEnumerable<CimClass>

An IEnumerable<T> interface that can be used to enumerate the CIM classes.

See also

CimClass class
Microsoft.Management.Infrastructure.Serialization namespace