ExtensionHandle<TInterfaceType> 类

包含扩展类型以及此扩展类型的命名配置。

继承层次结构

System.Object
  Microsoft.Data.Schema.Extensibility.ExtensionHandle
    Microsoft.Data.Schema.Extensibility.ExtensionHandle<TInterfaceType>

命名空间:  Microsoft.Data.Schema.Extensibility
程序集:  Microsoft.Data.Schema(在 Microsoft.Data.Schema.dll 中)

语法

声明
Public NotInheritable Class ExtensionHandle(Of TInterfaceType As {Class, IExtension}) _
    Inherits ExtensionHandle
public sealed class ExtensionHandle<TInterfaceType> : ExtensionHandle
where TInterfaceType : class, IExtension
generic<typename TInterfaceType>
where TInterfaceType : ref class, IExtension
public ref class ExtensionHandle sealed : public ExtensionHandle
[<Sealed>]
type ExtensionHandle<'TInterfaceType when 'TInterfaceType : not struct and IExtension> =  
    class
        inherit ExtensionHandle
    end
JScript 不支持泛型类型或方法。

类型参数

  • TInterfaceType

ExtensionHandle<TInterfaceType> 类型公开以下成员。

属性

  名称 说明
公共属性 Description 获取或设置此扩展的说明。 (继承自 ExtensionHandle。)
公共属性 ExtensionManager 获取或设置对 ExtensionManager 的引用。 (继承自 ExtensionHandle。)
公共属性 ExtensionType 获取扩展类型。 (继承自 ExtensionHandle。)
公共属性 ExtensionTypeFriendlyName 获取扩展类型的友好名称。 (继承自 ExtensionHandle。)
公共属性 FriendlyName 获取此扩展句柄的友好名称。 (继承自 ExtensionHandle。)
公共属性 Publisher 获取或设置此扩展的发布者的名称。 (继承自 ExtensionHandle。)

页首

方法

  名称 说明
公共方法 Equals(Object) 确定两个对象是否相等。 (继承自 ExtensionHandle。)
公共方法 Equals(ExtensionHandle) 确定两个 ExtensionHandle 对象是否相等。如果ExtensionType是相同的这些对象相等。 (继承自 ExtensionHandle。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 获取此的哈希代码ExtensionHandle基于ExtensionType。 (继承自 ExtensionHandle。)
公共方法 GetSchema 获取此扩展的 XML 序列化的架构。 (继承自 ExtensionHandle。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 Instantiate 实例化一个 ExtensionHandle。
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 ReadXml 反序列化的扩展,返回类型名称和程序集名称。 (继承自 ExtensionHandle。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 WriteXml 序列化此扩展句柄。序列化中包括程序集的全名和类型全名。 (继承自 ExtensionHandle。)

页首

备注

从 ExtensionManager 获取 ExtensionHandler。 可以从该句柄实例化扩展类型。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参见

参考

Microsoft.Data.Schema.Extensibility 命名空间