ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data.Raster Namespace / Raster Class / SetSpatialReference Method
The ArcGIS.Core.Geometry.SpatialReference to set.

SetSpatialReference Method (Raster)
Sets the ArcGIS.Core.Geometry.SpatialReference of this raster. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetSpatialReference( 
   SpatialReference spatialRef
)

Parameters

spatialRef
The ArcGIS.Core.Geometry.SpatialReference to set.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also