ArcGIS Pro 2.8 API Reference Guide
Create(Int32,Boolean) Method
Example 

ArcGIS.Core.Geometry Namespace > CompositeGeographicTransformation Class > Create Method : Create(Int32,Boolean) Method
The well-known ID of the geographic transformation to be created.
(Optional) Default is true. If false, the created transformation is inverted.
Creates a new GeographicTransformation instance with the given well-known ID and direction, and adds to it a new CompositeGeographicTransformation instance.
Syntax
Public Overloads Shared Function Create( _
   ByVal wkid As Integer, _
   Optional ByVal transformForward As Boolean _
) As CompositeGeographicTransformation

Parameters

wkid
The well-known ID of the geographic transformation to be created.
transformForward
(Optional) Default is true. If false, the created transformation is inverted.

Return Value

A new composite geographic transformation that contains the created GeoegraphicTransformation.
Example
// Create singleton from wkid
CompositeGeographicTransformation cgt = ArcGIS.Core.Geometry.CompositeGeographicTransformation.Create(108272);
int count = cgt.Count;    // count = 1

IList<GeographicTransformation> gts = cgt.Transformations as IList<GeographicTransformation>;
gts.Add(ArcGIS.Core.Geometry.GeographicTransformation.Create(1437, false));
count = cgt.Count;        // count = 2

// create from an enumeration
CompositeGeographicTransformation another_cgt = ArcGIS.Core.Geometry.CompositeGeographicTransformation.Create(gts);
GeographicTransformation gt0 = another_cgt[0];
GeographicTransformation gt1 = another_cgt[1];

// get the inverse
CompositeGeographicTransformation inversed_cgt = another_cgt.GetInverse() as CompositeGeographicTransformation;
// inversed_cgt[0] is same as gt1
// inversed_cgt[1] is same as gt0

var wkt = gt0.Wkt;
// create from string 
CompositeGeographicTransformation third_cgt = ArcGIS.Core.Geometry.CompositeGeographicTransformation.Create(wkt, gt0.IsForward);
count = third_cgt.Count;        // count = 1

// create from josn
string json = cgt.ToJson();
CompositeGeographicTransformation joson_cgt = DatumTransformation.CreateFromJson(json) as CompositeGeographicTransformation;
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CompositeGeographicTransformation Class
CompositeGeographicTransformation Members
Overload List