CollectionExtensions.GetRuntimeGroup Methode

Definition

Ruft die erste RuntimeAssetGroup ab, in der Runtime mit runtime übereinstimmt.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^ GetRuntimeGroup(System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyModel::RuntimeAssetGroup ^> ^ self, System::String ^ runtime);
public static Microsoft.Extensions.DependencyModel.RuntimeAssetGroup GetRuntimeGroup (this System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> self, string runtime);
public static Microsoft.Extensions.DependencyModel.RuntimeAssetGroup? GetRuntimeGroup (this System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> self, string runtime);
static member GetRuntimeGroup : seq<Microsoft.Extensions.DependencyModel.RuntimeAssetGroup> * string -> Microsoft.Extensions.DependencyModel.RuntimeAssetGroup
<Extension()>
Public Function GetRuntimeGroup (self As IEnumerable(Of RuntimeAssetGroup), runtime As String) As RuntimeAssetGroup

Parameter

self
IEnumerable<RuntimeAssetGroup>

Die Quellenumeration von RuntimeAssetGroup.

runtime
String

Die zu suchende Zeichenfolge.

Gibt zurück

RuntimeAssetGroup

Die erste RuntimeAssetGroup, in der Runtime mit runtimeübereinstimmt, oder null, wenn kein solches Element vorhanden ist.

Ausnahmen

runtime hat den Wert null oder ist leer.

Gilt für: