PSDBUtility.BuildDictionaryTableIndex 方法
保留給內部使用。
命名空間: Microsoft.Office.Project.Server.Library
組件: Microsoft.Office.Project.Server.Library (在 Microsoft.Office.Project.Server.Library.dll 中)
語法
'宣告
Public Shared Function BuildDictionaryTableIndex ( _
dt As DataTable, _
keyCol As DataColumn _
) As Dictionary(Of Guid, DataRow)
'用途
Dim dt As DataTable
Dim keyCol As DataColumn
Dim returnValue As Dictionary(Of Guid, DataRow)
returnValue = PSDBUtility.BuildDictionaryTableIndex(dt, _
keyCol)
public static Dictionary<Guid, DataRow> BuildDictionaryTableIndex(
DataTable dt,
DataColumn keyCol
)
參數
- dt
類型:System.Data.DataTable
- keyCol
類型:System.Data.DataColumn
傳回值
類型:System.Collections.Generic.Dictionary<Guid, DataRow>
會傳回Dictionary<TKey, TValue>。