共用方式為


ISettingsManager3.GetSettingMonikersAsync Method

Definition

Gets all the registered setting monikers starting with monikerPrefix (case insensitive comparison).

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

Parameters

monikerPrefix
String

The first part of a setting name; pass an empty string to get all setting monikers.

startIndex
Int32

The index of the first setting to return.

maxCount
Int32

The maximum number of settings to return.

cancellationToken
CancellationToken

A cancellation token.

Returns

An async task whose result is the collection of setting monikers matching the given prefix.

Applies to