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


IESRIShape.AttachToESRIShape Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IE > IESRIShape Interface > IESRIShape.AttachToESRIShape Method
ArcGIS Developer Help

IESRIShape.AttachToESRIShape Method

Takes ownership of the input Esri shapefile format buffer. The geometry must be deleted, set to empty, edited, or imported from/attached to a different buffer before the buffer can be re-used.

[Visual Basic .NET]
Public Sub AttachToESRIShape ( _
    ByRef byteCountInOut As Integer, _
    ByRef byteBuffer As Byte& _
)
[C#]
public void AttachToESRIShape (
    ref int byteCountInOut,
    ref Byte& byteBuffer
);
[C++]
HRESULT AttachToESRIShape(
  System.Int32* byteCountInOut,
  System.Byte* byteBuffer
);
[C++]
Parameters
byteCountInOut [in, out]

byteCountInOut is a parameter of type long* byteBuffer [in]
byteBuffer is a parameter of type unsigned char*

Product Availability

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

See Also

IESRIShape Interface