地理信息系统C#+AO二次开发?

[复制链接]
查看11 | 回复1 | 2010-8-18 13:49:04 | 显示全部楼层 |阅读模式
Public Function GetEnumNetFC(ByVal ftype As esriFeatureType) As IEnumFeatureClass
Dim pEnumFC As IEnumFeatureClass
Try
GetEnumNetFC=Nothing
Ifm_ipGeometricNetwork Is Nothing Then Exit Function
pEnumFC=Nothing

pEnumFC=m_ipGeometricNetwork.Classes ByType(ftype)

If pEnumFC Is Nothing Then Exit Function

pEnum FC.Reset()

GetEnumNetFC=pEnumFC

Exit Function
Catch ex As Exception

GetEnumNetFC=Nothing

End Try
End Function
将上面的vb代码,改成C#代码。

回复

使用道具 举报

千问 | 2010-8-18 13:49:04 | 显示全部楼层
public IEnumFeatureClass getEnumNetFC(esriFeatureType ftype)
{
IEnumFeatureClass pEnumFC = new IEnumFeatureClass();
try
{
getEnumNetFC = (IEnumFeatureClass)null;
if (m_ipGeometricNetwork != null)
{
//pEnumFC =
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行