Collection<T>.Convert<TDerived> 메서드
Creates a wrapper collection that can be used to access elements in the specified collection by using its base type.
네임스페이스: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리: Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)
구문
‘선언
Public Shared Function Convert(Of TDerived As {Class, T}) ( _
collection As IMetadataCollection(Of TDerived) _
) As IMetadataCollection(Of T)
‘사용 방법
Dim collection As IMetadataCollection(Of TDerived)
Dim returnValue As IMetadataCollection(Of T)
returnValue = Collection.Convert(collection)
public static IMetadataCollection<T> Convert<TDerived>(
IMetadataCollection<TDerived> collection
)
where TDerived : class, T
public:
generic<typename TDerived>
where TDerived : ref class, T
static IMetadataCollection<T>^ Convert(
IMetadataCollection<TDerived>^ collection
)
static member Convert :
collection:IMetadataCollection<'TDerived> -> IMetadataCollection<'T> when 'TDerived : not struct and 'T
JScript는 제네릭 형식 및 메서드를 지원하지 않습니다.
유형 매개 변수
- TDerived
The type of the elements in the collection to be converted.
매개 변수
- collection
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<TDerived>
The collection to be converted.
반환 값
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataCollection<T>
The IMetadataCollection<T> object that contains the same elements as the specified collection.
참고 항목
참조
Microsoft.SqlServer.Management.SqlParser.MetadataProvider 네임스페이스