|  | This document is archived and information here might be outdated. Recommended version. | 
| ArcObjects Help for .NET developers > ArcObjects namespaces > SpatialAnalyst > ESRI.ArcGIS.SpatialAnalyst > Interfaces > IH > IHydrologyOp2 Interface > IHydrologyOp2.StreamLink Method (ArcObjects .NET 10.5 SDK) | 
Assigns unique values to sections of a raster linear network between intersections.
[Visual Basic .NET] Public Function StreamLink ( _ ByVal streamRaster As IGeoDataset, _ ByVal directionRaster As IGeoDataset _ ) As IGeoDataset
[C#] public IGeoDataset StreamLink ( IGeoDataset streamRaster, IGeoDataset directionRaster );
[C++]
HRESULT StreamLink(
  IGeoDataset* streamRaster,
  IGeoDataset* directionRaster,
  IGeoDataset** StreamLink
);
[C++]
Parameters streamRaster [in]
streamRaster is a parameter of type IGeoDataset directionRaster [in]
directionRaster is a parameter of type IGeoDataset StreamLink [out, retval]
StreamLink is a parameter of type IGeoDataset
| streamRaster | an input Raster, RasterDataset, RasterBand, or RasterDescriptor representing a raster linear network | 
| directionRaster | an input Raster, RasterDataset, RasterBand, or RasterDescriptor showing the direction of flow out of each cell This can be created using the IHydrologyOp::FlowDirection method. |