IVsDataMappedObjectSelector.SelectMappedObjects<T> Generic Method (String, [])

Retrieves a list of mapped data objects for the specified type name, filtered by the specified restrictions.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function SelectMappedObjects(Of T As IVsDataMappedObject) ( _
    specificTypeName As String, _
    restrictions As Object() _
) As IList(Of T)
'使用
Dim instance As IVsDataMappedObjectSelector
Dim specificTypeName As String
Dim restrictions As Object()
Dim returnValue As IList(Of T)

returnValue = instance.SelectMappedObjects(specificTypeName, _
    restrictions)
IList<T> SelectMappedObjects<T>(
    string specificTypeName,
    Object[] restrictions
) where T : IVsDataMappedObject
generic<typename T>
where T : IVsDataMappedObject
IList<T>^ SelectMappedObjects(
    String^ specificTypeName, 
    array<Object^>^ restrictions
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

  • specificTypeName
    Type: System.String

    The name of the type to retrieve mapped data objects for. This is the generic data type name, which is found in the data object store XML in the <MappedType> element.

  • restrictions
    Type: []

    A list of identifiers that restrict the objects returned from the object store to the ones matching these restrictions.

Return Value

Type: System.Collections.Generic.IList<T>

A list of IVsDataMappedObject objects for the specified type, matching the specified restrictions.

Exceptions

Exception Condition
ArgumentException

The type name is invalid.

NotSupportedException

The type name is not supported.

ArgumentException

The restrictions are invalid.

Permissions

See Also

Reference

IVsDataMappedObjectSelector Interface

IVsDataMappedObjectSelector Members

SelectMappedObjects Overload

Microsoft.VisualStudio.Data.Services Namespace