IVsDataMappedObjectSelector.SelectMappedObjects Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SelectMappedObjects<T>() |
Retrieves a list of mapped data objects from the object store. |
SelectMappedObjects<T>(Object[]) |
Retrieves a list of mapped data objects, filtered by the specified restrictions. |
SelectMappedObjects<T>(String) |
Retrieves a list of mapped data objects of the specified type. |
SelectMappedObjects<T>(Object[], Boolean) |
Retrieves a list of mapped data objects filtered by the specified restrictions. |
SelectMappedObjects<T>(String, Object[]) |
Retrieves a list of mapped data objects for the specified type name, filtered by the specified restrictions. |
SelectMappedObjects<T>(String, Object[], Boolean) |
Retrieves a list of mapped data objects for the specified type name, filtered by the specified restrictions. |
SelectMappedObjects<T>()
Retrieves a list of mapped data objects from the object store.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects();
public System.Collections.Generic.IList<T> SelectMappedObjects<T> () where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : unit -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) () As IList(Of T)
Type Parameters
- T
The type of the parameter.
Returns
A list of IVsDataMappedObject objects representing the mapped objects.
Applies to
SelectMappedObjects<T>(Object[])
Retrieves a list of mapped data objects, filtered by the specified restrictions.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects(cli::array <System::Object ^> ^ restrictions);
public System.Collections.Generic.IList<T> SelectMappedObjects<T> (object[] restrictions) where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : obj[] -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) (restrictions As Object()) As IList(Of T)
Type Parameters
- T
The type of the parameter.
Parameters
- restrictions
- Object[]
An array of restrictions that restrict the objects returned from the object store to the ones matching these restrictions.
Returns
A list of IVsDataMappedObject objects, filtered by the specified restrictions.
Exceptions
The restrictions are not valid.
Applies to
SelectMappedObjects<T>(String)
Retrieves a list of mapped data objects of the specified type.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects(System::String ^ specificTypeName);
public System.Collections.Generic.IList<T> SelectMappedObjects<T> (string specificTypeName) where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : string -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) (specificTypeName As String) As IList(Of T)
Type Parameters
- T
The type of the parameter.
Parameters
- specificTypeName
- 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.
Returns
A list of IVsDataMappedObject objects representing the mapped objects for the specified type.
Exceptions
The type name is not valid.
The type name is not supported.
Applies to
SelectMappedObjects<T>(Object[], Boolean)
Retrieves a list of mapped data objects filtered by the specified restrictions.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects(cli::array <System::Object ^> ^ restrictions, bool refresh);
public System.Collections.Generic.IList<T> SelectMappedObjects<T> (object[] restrictions, bool refresh) where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : obj[] * bool -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) (restrictions As Object(), refresh As Boolean) As IList(Of T)
Type Parameters
- T
The type of the parameter.
Parameters
- restrictions
- Object[]
A list of identifiers that restrict the objects returned from the object store to the ones matching these restrictions.
- refresh
- Boolean
A Boolean value indicating whether to update the list of required restrictions and properties.
Returns
A list of IVsDataMappedObject objects matching the specified restrictions.
Exceptions
The restrictions are not valid.
Applies to
SelectMappedObjects<T>(String, Object[])
Retrieves a list of mapped data objects for the specified type name, filtered by the specified restrictions.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects(System::String ^ specificTypeName, cli::array <System::Object ^> ^ restrictions);
public System.Collections.Generic.IList<T> SelectMappedObjects<T> (string specificTypeName, object[] restrictions) where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : string * obj[] -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) (specificTypeName As String, restrictions As Object()) As IList(Of T)
Type Parameters
- T
The type of the parameter.
Parameters
- specificTypeName
- 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
- Object[]
A list of identifiers that restrict the objects returned from the object store to the ones matching these restrictions.
Returns
A list of IVsDataMappedObject objects for the specified type, matching the specified restrictions.
Exceptions
The restrictions are invalid.
The type name is not supported.
Applies to
SelectMappedObjects<T>(String, Object[], Boolean)
Retrieves a list of mapped data objects for the specified type name, filtered by the specified restrictions.
public:
generic <typename T>
where T : Microsoft::VisualStudio::Data::Services::IVsDataMappedObject System::Collections::Generic::IList<T> ^ SelectMappedObjects(System::String ^ specificTypeName, cli::array <System::Object ^> ^ restrictions, bool refresh);
public System.Collections.Generic.IList<T> SelectMappedObjects<T> (string specificTypeName, object[] restrictions, bool refresh) where T : Microsoft.VisualStudio.Data.Services.IVsDataMappedObject;
abstract member SelectMappedObjects : string * obj[] * bool -> System.Collections.Generic.IList<'T (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)> (requires 'T :> Microsoft.VisualStudio.Data.Services.IVsDataMappedObject)
Public Function SelectMappedObjects(Of T As IVsDataMappedObject) (specificTypeName As String, restrictions As Object(), refresh As Boolean) As IList(Of T)
Type Parameters
- T
The type of the parameter.
Parameters
- specificTypeName
- 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
- Object[]
A list of identifiers that restrict the objects returned from the object store to the ones matching these restrictions.
- refresh
- Boolean
A Boolean value indicating whether to update the list of required restrictions and properties.
Returns
A list of IVsDataMappedObject objects for the specified type, matching the specified restrictions.
Exceptions
The restrictions are invalid.
The type name is not supported.