共用方式為


DataContractBase.GetNewCollection<T> 方法

Instantiates and returns a new collection.

命名空間:  Microsoft.MasterDataServices.Services.DataContracts
組件:  Microsoft.MasterDataServices.Services.Contracts (在 Microsoft.MasterDataServices.Services.Contracts.dll 中)

語法

'宣告
Protected Shared Function GetNewCollection(Of T) As Collection(Of T)
'用途
Dim returnValue As Collection(Of T)

returnValue = DataContractBase.GetNewCollection()
protected static Collection<T> GetNewCollection<T>()
protected:
generic<typename T>
static Collection<T>^ GetNewCollection()
static member GetNewCollection : unit -> Collection<'T> 
JScript 不支援一般類型和方法。

型別參數

  • T
    The type of the object inside the collection.

傳回值

型別:System.Collections.ObjectModel.Collection<T>
A new collection.

請參閱

參考

DataContractBase 類別

Microsoft.MasterDataServices.Services.DataContracts 命名空間