ESRI.ArcGIS.Mobile
CreateFromEsriShape Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Geometry Class : CreateFromEsriShape Method

byteArray
Uses ESRI shapefile formatted buffer. Assumes the buffer describes a topologically correct geometry.
Creates a Geometry from a Geometry exported from ArcGIS with the same spatial reference.

Syntax

Visual Basic (Declaration) 
Public Shared Function CreateFromEsriShape( _
   ByVal byteArray() As Byte _
) As Geometry
C# 
public static Geometry CreateFromEsriShape( 
   byte[] byteArray
)

Parameters

byteArray
Uses ESRI shapefile formatted buffer. Assumes the buffer describes a topologically correct geometry.

Return Value

Returns an instance of the geometry object.

Exceptions

ExceptionDescription
ArgumentNullExceptionNull spatial reference.
InvalidOperationExceptionUnsupported shape type.

Remarks

For more information on exporting shapes to byte array see ArcGIS developer help on IESRIShape interface.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.