This document is archived and information here might be outdated.  Recommended version.


IAMFWriter Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IA > IAMFWriter Interface
ArcGIS Developer Help

IAMFWriter Interface

Provides access to members that control the sequential writing of AMF.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method EndAMF3Array Finishes writing an array.
Method EndAMF3Object Finishes writing object.
Method EndAMF3ObjectTraits Call this method to finish writing object traits and switch to writing members.
Method GetCopy Clones IAMFWriter. Useful when you want to preserve traits and object, string and trait references.
Method StartAMF3Array Starts writing of array. Returns object reference index.
Method StartAMF3CustomObject Starst writing a custom object. Contents of this kind of objects are user-defined.
Method StartAMF3Object Starts writing an object, sends traits by reference. Returns object reference index.
Method StartAMF3ObjectWithTraits Start writing an object with traits. Returns trait reference index end object reference index.
Read-only property Stream Obtains underlying stream.
Method WriteAMF3_UTF8 This method is required if you want to write member names in traits.
Method WriteAMF3_UTF8Ref This method is required if you want to write member names in traits by reference.
Method WriteAMF3ArrayDenseMarker Switches from writing of associative portion of an array to dense portion.
Method WriteAMF3ArrayRef Writes an array by reference.
Method WriteAMF3Bool Writes boolean value.
Method WriteAMF3ByteArray Writes byte array. Returns object reference index. Note that this is not an AMF3 array but another type - AMF3 byte array.
Method WriteAMF3ByteArrayRef Writes byte array by reference. Note that this is not an AMF3 array but another type - AMF3 byte array.
Method WriteAMF3Date Writes date. Returns object reference index.
Method WriteAMF3DateRef Writes date by reference. Important: do not use this method if you send dates as JSON numbers, references will be incorrect.
Method WriteAMF3Double Writes double (64-bit) value.
Method WriteAMF3Int Writes integer (32-bit) value.
Method WriteAMF3Null Writes null value.
Method WriteAMF3ObjectRef Writes object by reference.
Method WriteAMF3String Writes string value. Returns string reference index.
Method WriteAMF3StringRef Writes string value by reference.
Method WriteAMF3Undefined Writes undefined value.
Method WriteAMF3Variant Writes value types (excluding array and object), may return string or object reference index. If reference is not applicable, value_ref is set to -1.
Method WriteAMF3Xml Writes XML. Returns object reference index.
Method WriteAMF3XmlDoc Writes XML document. Returns object reference index.
Method WriteAMF3XmlDocRef Writes XML document by reference.
Method WriteAMF3XmlRef Writes XML by reference.
Method WriteTo Specifies output AMF stream.
Method WriteU16 Writes short integer. AMF0 format only. Don't use this method for AMF3 objects.
Method WriteU32 Writes an integer. AMF0 format only. Don't use this method for AMF3 objects.
Method WriteU8 Writes a byte. AMF0 format only. Don't use this method for AMF3 objects.
Method WriteUTF8 This method is used to write AMF0 strings. AMF0 format only. Don't use this method for AMF3 objects.

Classes that implement IAMFWriter

Classes Description
AMFWriter A sequential AMF Writer.