NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

BinaryEditor.ConvertToBytes

Converts the given object to an array of bytes to be manipulated by the editor. The default implementation of this supports byte[] and stream objects.

[Visual Basic]
Overridable Protected Function ConvertToBytes( _
   ByVal value As Object _
) As Byte ()
[C#]
protected virtual byte[] ConvertToBytes(
   object value
);
[C++]
protected: virtual unsigned char* ConvertToBytes(
   Object* value
) [];
[JScript]
protected function ConvertToBytes(
   value : Object
) : Byte[];

Parameters

value
An object value to convert.

Return Value

An array of bytes representing this object, or null if there is no known conversion.

See Also

BinaryEditor Class | BinaryEditor Members | System.ComponentModel.Design Namespace