ProvideSearchProviderAttribute Constructor
Initializes a new instance of the ProvideSearchProviderAttribute class.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣言
Public Sub New ( _
providerType As Type, _
name As String _
)
public ProvideSearchProviderAttribute(
Type providerType,
string name
)
Parameters
- providerType
Type: System.Type
The type implementing the IVsSearchProvider extension.
- name
Type: System.String
A short, non-localized human-readable name of the provider.
Remarks
Specifies that the package implements an IVsSearchProviderFactory interface (that is, by deriving from ExtensionPointPackage) and declares the type implementing the search provider.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.