ISerializable.GetObjectData Method

Microsoft Speech Platform SDK 11

Collapse imageExpand ImageCopy imageCopyHover image

Populates a SerializationInfo instance with the data needed to serialize the target object.

Namespace:  Microsoft.Speech.Recognition
Assembly:  Microsoft.Speech (in Microsoft.Speech.dll)

Syntax

Visual Basic (Declaration)
<SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter := True)> _
Private Sub GetObjectData ( _
	info As SerializationInfo, _
	context As StreamingContext _
) Implements ISerializable.GetObjectData
Visual Basic (Usage)
Dim instance As RecognitionResult
Dim info As SerializationInfo
Dim context As StreamingContext

CType(instance, ISerializable).GetObjectData(info, _
	context)
C#
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
void ISerializable.GetObjectData(
	SerializationInfo info,
	StreamingContext context
)

Parameters

info
Type: System.Runtime.Serialization..::..SerializationInfo

The object to populate with data.

context
Type: System.Runtime.Serialization..::..StreamingContext

The destination for the serialization.

Implements

ISerializable..::..GetObjectData(SerializationInfo, StreamingContext)

Remarks

This member is an explicit interface member implementation. It can be used only when the RecognitionResult instance is cast to an ISerializable interface.

See Also