Version: 2023.1
public static Search.SearchProvider GetProvider (string providerId);

参数

providerId Unique ID of the search provider.

返回

SearchProvider The matching search provider.

描述

Returns the data of a search provider given its ID.

var menuProvider = SearchService.GetProvider("menu");
Debug.Assert(menuProvider != null);