ISettingsManager3.GetSettingInfosAsync(String, Int32, Int32, CancellationToken) Methode

Definition

Ruft die Metadaten für alle registrierten Einstellungen ab, die mit beginnen monikerPrefix (Groß-/Kleinschreibung nicht beachtet).

public:
 System::Threading::Tasks::ValueTask<System::Collections::Generic::IReadOnlyList<Microsoft::VisualStudio::RpcContracts::Settings::SettingInfo ^> ^> GetSettingInfosAsync(System::String ^ monikerPrefix, int startIndex, int maxCount, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Settings.SettingInfo>>? GetSettingInfosAsync (string monikerPrefix, int startIndex, int maxCount, System.Threading.CancellationToken cancellationToken);
abstract member GetSettingInfosAsync : string * int * int * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.RpcContracts.Settings.SettingInfo>>
Public Function GetSettingInfosAsync (monikerPrefix As String, startIndex As Integer, maxCount As Integer, cancellationToken As CancellationToken) As ValueTask(Of IReadOnlyList(Of SettingInfo))

Parameter

monikerPrefix
String

Der erste Teil eines Einstellungs namens. übergeben Sie eine leere Zeichenfolge, um alle Einstellungs Moniker zu erhalten.

startIndex
Int32

Der Index der ersten zurück zugebende Einstellung.

maxCount
Int32

Die maximale Anzahl von Einstellungen, die zurückgegeben werden sollen.

cancellationToken
CancellationToken

Ein Abbruchtoken.

Gibt zurück

ValueTask<IReadOnlyList<SettingInfo>>

Eine Async-Aufgabe, deren Ergebnis die Informationen für alle Einstellungen ist, die mit dem angegebenen Präfix übereinstimmen.

Gilt für