共用方式為


DataMappedObjectTypeAttribute 類別

指定介面或類別表示對應的物件型別。 對應 的物件 型別是公開特定的基礎資料來源特定物件的強型別檢視的 API。

繼承階層架構

Object
  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)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetIDsOfNames 將一組名稱對應至一組對應的分派識別項 (Dispatch Identifier)。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetTypeInfo 擷取物件的型別資訊,可以用來取得介面的型別資訊。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#GetTypeInfoCount 擷取物件提供的型別資訊介面數目 (0 或 1)。 (繼承自 Attribute)。
明確介面實作私用方法 System#Runtime#InteropServices#_Attribute#Invoke 提供物件所公開的屬性和方法的存取權。 (繼承自 Attribute)。

回頁首

備註

在資料來源類型和泛型型別之間的對應於資料物件支援 XML 檔案中指定。 例如,名稱為 <MappedType> 項目中的 TableColumn 的對應型別為可對應至呼叫 Column 的資料來源類型。 <Type> 項目所在的泛型型別。

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.VisualStudio.Data.Services 命名空間