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

投稿日: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)

関連記事

-プログラミング, ArcGIS
-, ,

Copyright© WINGFIELD since1981 , 2018 All Rights Reserved.