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


IKmlConversion.LayerToArray Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IK > IKmlConversion Interface > IKmlConversion.LayerToArray Method
ArcGIS Developer Help

IKmlConversion.LayerToArray Method

Converts a layer to KML and outputs a KMZ stream.

[Visual Basic .NET]
Public Function LayerToArray ( _
    ByVal pLayer As ILayer, _
    ByVal pQueryFilter As IQueryFilter, _
    ByVal pKmlParameters As IPropertySet _
) As Byte[]
[C#]
public Byte[] LayerToArray (
    ILayer pLayer,
    IQueryFilter pQueryFilter,
    IPropertySet pKmlParameters
);
[C++]
HRESULT LayerToArray(
  ILayer* pLayer,
  IQueryFilter* pQueryFilter,
  IPropertySet* pKmlParameters
);
[C++]
Parameters
pLayer [in]

pLayer is a parameter of type ILayer* pQueryFilter [in]
pQueryFilter is a parameter of type IQueryFilter* pKmlParameters [in]
pKmlParameters is a parameter of type IPropertySet*

Product Availability

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

See Also

IKmlConversion Interface