ArcGIS Pro 2.9 API Reference Guide
SetSpatialReference Method (Raster)

ArcGIS.Core.Data.Raster Namespace > Raster Class : SetSpatialReference Method
The ArcGIS.Core.Geometry.SpatialReference to set.
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
)
Public Sub SetSpatialReference( _
   ByVal spatialRef As SpatialReference _
) 

Parameters

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

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

Raster Class
Raster Members