DataMappedObjectTypeAttribute 类

指定接口或选件类表示映射的对象类型。显示特定基础数据源特定对象的强类型视图的已 映射的目标类型 是API。

继承层次结构

System.Object
  System.Attribute
    Microsoft.VisualStudio.Data.Services.DataMappedObjectTypeAttribute

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

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface, AllowMultiple := True)> _
Public NotInheritable Class DataMappedObjectTypeAttribute _
    Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)]
public sealed class DataMappedObjectTypeAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, AllowMultiple = true)]
public ref class DataMappedObjectTypeAttribute sealed : public Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)>]
type DataMappedObjectTypeAttribute =  
    class
        inherit Attribute
    end
public final class DataMappedObjectTypeAttribute extends Attribute

DataMappedObjectTypeAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 DataMappedObjectTypeAttribute 初始化 DataMappedObjectTypeAttribute 选件类的新实例,指定类型名称。

页首

属性

  名称 说明
公共属性 AvailableRestrictions 获取或设置为当前类型使用的任何限制。
公共属性 AvailableRestrictionsList 获取的当前类型可用的所有限制的列表。
公共属性 ClassId 获取或设置属性的选件类ID。
公共属性 Identifier 获取或设置唯一标识当前类型的标识符名称。
公共属性 IdentifierList 获取唯一标识当前类型标识符的列表。
公共属性 RequiredOrdering 获取或设置必需命令当前映射的类型的。
公共属性 TypeId 当在派生类中实现时,获取该 Attribute 的唯一标识符。 (继承自 Attribute。)
公共属性 TypeName 获取已映射的类型的名称。

页首

方法

  名称 说明
公共方法 Equals 基础结构。返回一个值,该值指示此实例是否与指定的对象相等。 (继承自 Attribute。)
公共方法 GetHashCode 返回此实例的哈希代码。 (继承自 Attribute。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
公共方法 IsDefaultAttribute 当在派生类中重写时,指示此实例的值是否是派生类的默认值。 (继承自 Attribute。)
公共方法 Match 当在派生类中重写时,返回一个指示此实例是否等于指定对象的值。 (继承自 Attribute。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)

页首

显式接口实现

  名称 说明
显式接口实现私有方法 _Attribute.GetIDsOfNames 将一组名称映射为对应的一组调度标识符。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfo 检索对象的类型信息,然后可以使用该信息获取接口的类型信息。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.GetTypeInfoCount 检索对象提供的类型信息接口的数量(0 或 1)。 (继承自 Attribute。)
显式接口实现私有方法 _Attribute.Invoke 提供对某一对象公开的属性和方法的访问。 (继承自 Attribute。)

页首

备注

在数据源类型和泛型类型之间的映射。数据对象指定支持XML文件。例如,名称为 <MappedType> 元素中的TableColumn的映射的类型是能映射到调用Column的数据源类型在 <Type> 元素查找的泛型类型。

线程安全

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

请参见

参考

Microsoft.VisualStudio.Data.Services 命名空间