ISettingsManager3.GetSettingInfosAsync 方法

定义

monikerPrefix (不区分大小写的比较) 中获取所有已注册设置的元数据。

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))

参数

monikerPrefix
String

设置名称的第一部分;传递一个空字符串以获取所有设置名字对象。

startIndex
Int32

要返回的第一个设置的索引。

maxCount
Int32

要返回的最大设置数。

cancellationToken
CancellationToken

取消标记。

返回

ValueTask<IReadOnlyList<SettingInfo>>

其结果为与给定前缀匹配的所有设置的信息的异步任务。

适用于