主要是example
#region GetLatestJobInfo
///<summary>
///獲取最新的職位信息
///</summary>
///<example>
///<code>
///<font face=
/// [C#]
/// public class MyClass
/// {
/// public void myMethod()
/// {
/// <font color=
/// wsJobPosition position = new wsJobPosition();
///
/// <font color=
/// <font color=
/// DataSet ds = position
///
/// <font color=
/// }
/// }
///
///</font>
///</code>
///</example>
///<param name=
///<param name=
///<returns>返回某字段降序排列的前N條記錄</returns>
[WebMethod]
public DataSet GetLatestJobInfo(int topNumber
{
DataSet ds = new DataSet();
DataTable dt;
orderField = orderField ==
string sql =
sql = string
dt = clsFactory
ds
return ds;
}
#endregion
用NDoc生成的說明如下:
獲取最新的職位信息
public DataSet GetLatestJobInfo(
int topNumber
string orderField
);
參數
topNumber
顯示最新條數
orderField
降序排列的字段
返回值
返回某字段降序排列的前N條記錄
示例
[C#]
public class MyClass
{
public void myMethod()
{
//創建web service對象
wsJobPosition position = new wsJobPosition();
//獲取最新
//前一個參數表示獲取的記錄條數
DataSet ds = position
//其它代碼
}
}
From:http://tw.wingwit.com/Article/program/net/201311/12327.html