ProvideSearchProviderAttribute(Type, String) 构造函数

定义

初始化 ProvideSearchProviderAttribute 类的新实例。

public:
 ProvideSearchProviderAttribute(Type ^ providerType, System::String ^ name);
public:
 ProvideSearchProviderAttribute(Platform::Type ^ providerType, Platform::String ^ name);
public ProvideSearchProviderAttribute (Type providerType, string name);
new Microsoft.VisualStudio.Shell.ProvideSearchProviderAttribute : Type * string -> Microsoft.VisualStudio.Shell.ProvideSearchProviderAttribute
Public Sub New (providerType As Type, name As String)

参数

providerType
Type

实现扩展的类型 IVsSearchProvider

name
String

提供程序的简短、非本地化的用户可读名称。

注解

指定包 IVsSearchProviderFactory 通过从 ExtensionPointPackage) 派生并声明实现搜索提供程序的类型,来实现接口 (。

适用于