シングルトン クラスのインスタンス化

 2016/9/1 (木)    

http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriFramework/AppRef.htm

System.Type t =  System.Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
ISpatialReferenceFactory pSpatialReferenceFactory = (ISpatialReferenceFactory)System.Activator.CreateInstance(t);
Dim t As System.Type = System.Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment")
Dim pSpatialReferenceFactory As ISpatialReferenceFactory = CType(System.Activator.CreateInstance(t), ISpatialReferenceFactory)

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.