ProvideCodeContainerProviderAttribute 类

定义

注册代码容器提供程序信息。 用法示例:[ProvideCodeContainerProvider (registeredName:“Test Provider”, providerId: “{92f93057-f1fc-49df-870f-b3474046911a}” displayNamePackageGuid: “{92f93057-f1fc-49df-870f-b3474046911a}”, imageMonikerGuid:“{92f93057-f1fc-49df-870f-b3474046911b}”, imageMonikerId: 10, DisplayNameResourceId = “#100”, DisplayDetailResourceId = “#110”) ]

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

构造函数

ProvideCodeContainerProviderAttribute(String, String, String, Int32, String, String, Type)

Create注册代码容器提供程序的注册属性

属性

DisplayDetailResourceId

获取提供程序的本地化显示详细信息的资源 ID

DisplayNameResourceId

获取提供程序的本地化显示名称的资源 ID

ExtensionProvidersKey

注册表中声明扩展提供程序的路径。 在派生类中重写。

(继承自 ExtensionPointRegistrationAttribute)
ExtensionProviderType

扩展提供程序的类型 (实现的接口)

(继承自 ExtensionPointRegistrationAttribute)
ImageMonikerGuid

获取代码容器提供程序的映像名字对象 guid

ImageMonikerId

获取代码容器提供程序的映像名字对象 ID

Name

扩展点提供程序的可读名称 可以是未本地化的字符串,也可以是以“@”为前缀的十进制资源标识符,指示托管资源。 例如,“@1234”前缀“#”可用于提示本机资源。

(继承自 ExtensionPointRegistrationAttribute)
Package

获取包 GUID

Provider

提供程序的 GUID

(继承自 ExtensionPointRegistrationAttribute)
ProviderGuidString

提供程序的 GUID 以字符串表示

(继承自 ExtensionPointRegistrationAttribute)
ProviderType

实现此包中关联扩展点的类型

(继承自 ExtensionPointRegistrationAttribute)
RegisteredName

获取提供程序的友好名称 - 此名称为区域设置固定

TypeId

重写 TypeID 属性,以便让 RegistrationAttribute 派生类与 System.ComponentModel.TypeDescriptor.GetAttributes 一起使用 (...) 。仅当派生自此属性的属性需要对可应用于类的实例使用更好的控件时,它才必须重写此属性。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取相对于 VSPackage 的应用程序) 注册表根目录 (注册表路径。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文注册此属性。 上下文包含应放置注册信息的位置。 它还包含正在注册的类型和路径信息。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此属性

适用于