次の方法で共有


DataContractBase.GetNewCollection<T> メソッド

新しいコレクションをインスタンス化して返します。

名前空間:  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
    コレクション内のオブジェクトの種類です。

戻り値

型: System.Collections.ObjectModel.Collection<T>
新しいコレクションです。

関連項目

参照

DataContractBase クラス

Microsoft.MasterDataServices.Services.DataContracts 名前空間