VS.net 2005 问一小段代码的调用关系.

zoulipeng 2006-05-19 10:19:52
public class TabularEventLog
{
[SqlFunction(FillRowMethodName = "FillRow")]
public static IEnumerable InitMethod(String logname)
{
return new EventLog(logname, Environment.MachineName).Entries;
}

public static void FillRow(Object obj, out SqlDateTime timeWritten, out SqlChars message, out SqlChars category, out long instanceId)
{
EventLogEntry eventLogEntry = (EventLogEntry)obj;
timeWritten = new SqlDateTime(eventLogEntry.TimeWritten);
message = new SqlChars(eventLogEntry.Message);
category = new SqlChars(eventLogEntry.Category);
instanceId = eventLogEntry.InstanceId;
}
}

1: [SqlFunction(FillRowMethodName = "FillRow")] 是啥意思?
2: IEnumerable InitMethod 该接口是怎么调用方法 FillRow 的?
3: return new EventLog(logname, Environment.MachineName).Entries; 是实现什么功能
4: static void FillRow 是怎么返回的?返回给哪个调用者?
谢谢!
...全文
113 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
zoulipeng 2006-05-20
  • 打赏
  • 举报
回复
人呢?
zoulipeng 2006-05-19
  • 打赏
  • 举报
回复
Up
zoulipeng 2006-05-19
  • 打赏
  • 举报
回复
UP

110,536

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧