Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the metadata objects from the given collection that contains a property with the given name.
Namespace: Microsoft.BusinessData.Runtime
Assembly: Microsoft.BusinessData (in Microsoft.BusinessData.dll)
Syntax
'Declaration
Function FilterMetadataObjectsByProperty(Of T As {Class, IMetadataObject}) ( _
collection As IEnumerable(Of T), _
propertyName As String _
) As T()
'Usage
Dim instance As IRuntimeHelper
Dim collection As IEnumerable(Of T)
Dim propertyName As String
Dim returnValue As T()
returnValue = instance.FilterMetadataObjectsByProperty(collection, _
propertyName)
T[] FilterMetadataObjectsByProperty<T>(
IEnumerable<T> collection,
string propertyName
)
where T : class, IMetadataObject
Type Parameters
- T
The type of the metadata object.
Parameters
collection
Type: System.Collections.Generic.IEnumerable<T>The collection of metadata objects.
propertyName
Type: System.StringThe name of the property to look for.
Return Value
Type: []
An array of metadata objects that contain the given property.