ArcObjects Library Reference  (Carto)    

ISelectionLayerDefinition.CreateSelectionLayer Method

Creates a new feature layer from the existing layer based on the current selection and the specified query expression.

[Visual Basic 6.0]
Function CreateSelectionLayer(
    ByVal LayerName As String, _
    ByVal useCurrentSelection As Boolean, _
    ByVal joinTableNames As String, _
    ByVal Expression As String _
) As IFeatureLayer
[Visual Basic .NET]
Public Function CreateSelectionLayer ( _
    ByVal LayerName As String, _
    ByVal useCurrentSelection As Boolean, _
    ByVal joinTableNames As String, _
    ByVal Expression As String _
) As IFeatureLayer
public IFeatureLayer CreateSelectionLayer (
    string LayerName,
    bool useCurrentSelection,
    string joinTableNames,
    string Expression
public IFeatureLayer createSelectionLayer (
    String LayerName,
    Boolean useCurrentSelection,
    String joinTableNames,
    String Expression
HRESULT CreateSelectionLayer(
  BSTR LayerName,
  VARIANT_BOOL useCurrentSelection,
  BSTR joinTableNames,
  BSTR Expression,
  IFeatureLayer** Layer


LayerName [in]

  LayerName is a parameter of type BSTR

useCurrentSelection [in]

  useCurrentSelection is a parameter of type VARIANT_BOOL

joinTableNames [in]

  joinTableNames is a parameter of type BSTR

Expression [in]

  Expression is a parameter of type BSTR

Layer [out, retval]

  Layer is a parameter of type IFeatureLayer

Product Availability

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

See Also

ISelectionLayerDefinition Interface