Metodo IVsDataMappedObjectSelector.SelectMappedObjects<T> (String, array<Object[], Boolean)
Recupera un elenco di oggetti dati mappati per il nome del tipo specificato, filtrati da restrizioni specificate.
Spazio dei nomi: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Sintassi
'Dichiarazione
Function SelectMappedObjects(Of T As IVsDataMappedObject) ( _
specificTypeName As String, _
restrictions As Object(), _
refresh As Boolean _
) As IList(Of T)
IList<T> SelectMappedObjects<T>(
string specificTypeName,
Object[] restrictions,
bool refresh
)
where T : IVsDataMappedObject
generic<typename T>
where T : IVsDataMappedObject
IList<T>^ SelectMappedObjects(
String^ specificTypeName,
array<Object^>^ restrictions,
bool refresh
)
abstract SelectMappedObjects :
specificTypeName:string *
restrictions:Object[] *
refresh:bool -> IList<'T> when 'T : IVsDataMappedObject
JScript non supporta i tipi o i metodi generici.
Parametri di tipo
- T
Tipo del parametro.
Parametri
specificTypeName
Tipo: StringIl nome del tipo per recuperare gli oggetti dati mappati per. Questo nome generico del tipo di dati, che si trova nel file XML dell'oggetto dati nell'elemento di <MappedType> .
restrictions
Tipo: array<Object[]Un elenco di identificatori che limitano gli oggetti restituiti dall'oggetto ai corrispondenti alle restrizioni.
refresh
Tipo: BooleanUn valore Boolean che indica se aggiornare l'elenco delle restrizioni necessarie le proprietà e.
Valore restituito
Tipo: IList<T>
Un elenco IVsDataMappedObject oggetti per il tipo specificato, e le restrizioni specificate.
Eccezioni
Eccezione | Condizione |
---|---|
ArgumentException | Il nome del tipo non valido. |
NotSupportedException | Il nome del tipo non è supportato. |
ArgumentException | Le restrizioni non sono valide. |
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per altre informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.