共用方式為


ProvideSearchProviderAttribute 類別

定義

此屬性會將套件註冊為搜尋提供者, IVsSearchProvider () 擴充器。
傳入的類型和名稱會決定要註冊的搜尋提供者。

public ref class ProvideSearchProviderAttribute sealed : Microsoft::VisualStudio::Shell::ExtensionPointRegistrationAttribute
public ref class ProvideSearchProviderAttribute sealed : Microsoft::VisualStudio::Shell::ExtensionPointRegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideSearchProviderAttribute : Microsoft.VisualStudio.Shell.ExtensionPointRegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideSearchProviderAttribute = class
    inherit ExtensionPointRegistrationAttribute
Public NotInheritable Class ProvideSearchProviderAttribute
Inherits ExtensionPointRegistrationAttribute
繼承
屬性

建構函式

ProvideSearchProviderAttribute(Type, String)

指定封裝會實作 IVsSearchProviderFactory 介面 (例如衍生自 ExtensionPointPackage) ,並宣告實作搜尋提供者的類型。

屬性

ExtensionProvidersKey

宣告延伸模組提供者之登錄中的路徑。 在衍生類別中覆寫。

(繼承來源 ExtensionPointRegistrationAttribute)
ExtensionProviderType

擴充提供者的類型 (實作的介面)

(繼承來源 ExtensionPointRegistrationAttribute)
Name

擴充點提供者的人類可讀取名稱:這可能是非本地化字串,或是以 『@』 開頭為受控資源的十進位資源識別符。 例如,“@1234” '#' 前置詞可用來提示原生資源。

(繼承來源 ExtensionPointRegistrationAttribute)
Provider

提供者的 GUID

(繼承來源 ExtensionPointRegistrationAttribute)
ProviderGuidString

提供者的 GUID 以字串表示

(繼承來源 ExtensionPointRegistrationAttribute)
ProviderType

實作此套件中相關聯擴充點的類型

(繼承來源 ExtensionPointRegistrationAttribute)
TypeId

覆寫 TypeID 屬性,讓 RegistrationAttribute 衍生類別使用 System.ComponentModel.TypeDescriptor.GetAttributes (...) 。衍生自這個屬性的屬性必須覆寫此屬性,只有在實例上需要更好的控件,才能套用至類別。

(繼承來源 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

取得相對於 VSPackage 應用程式) 之登錄根目錄的登錄路徑 (。

(繼承來源 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

呼叫以註冊這個具有指定內容的屬性。 內容,其中包含用來放置註冊資訊的位置。 它也包含註冊的類型,以及路徑資訊。

(繼承來源 ExtensionPointRegistrationAttribute)
Unregister(RegistrationAttribute+RegistrationContext)

取消註冊此擴充點提供者規格。

(繼承來源 ExtensionPointRegistrationAttribute)

適用於