MediaEntryAttribute 類別
表示指定的類別會被視為媒體連結項目。
繼承階層
System.Object
System.Attribute
System.Data.Services.Client.MediaEntryAttribute
命名空間: System.Data.Services.Client
組件: Microsoft.Data.Services.Client (在 Microsoft.Data.Services.Client.dll 中)
語法
'宣告
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := True)> _
Public NotInheritable Class MediaEntryAttribute _
Inherits Attribute
'用途
Dim instance As MediaEntryAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MediaEntryAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = true)]
public ref class MediaEntryAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)>]
type MediaEntryAttribute =
class
inherit Attribute
end
public final class MediaEntryAttribute extends Attribute
MediaEntryAttribute 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
MediaEntryAttribute | 建立 MediaEntryAttribute 的新執行個體。 |
上層
屬性
名稱 | 說明 | |
---|---|---|
MediaMemberName | 類別上保存媒體 (通常是二進位資料) 的屬性名稱。 | |
TypeId | (繼承自 Attribute。) |
上層
方法
名稱 | 說明 | |
---|---|---|
Equals | (繼承自 Attribute。) | |
Finalize | (繼承自 Object。) | |
GetHashCode | (繼承自 Attribute。) | |
GetType | (繼承自 Object。) | |
IsDefaultAttribute | (繼承自 Attribute。) | |
Match | (繼承自 Attribute。) | |
MemberwiseClone | (繼承自 Object。) | |
ToString | (繼承自 Object。) |
上層
明確 繼承 實作
名稱 | 說明 | |
---|---|---|
_Attribute.GetIDsOfNames | (繼承自 Attribute。) | |
_Attribute.GetTypeInfo | (繼承自 Attribute。) | |
_Attribute.GetTypeInfoCount | (繼承自 Attribute。) | |
_Attribute.Invoke | (繼承自 Attribute。) |
上層
備註
類別會被視為媒體連結項目,這是處理二進位資料和該二進位資料之中繼資料的 AtomPub 通訊協定。
呼叫 SaveChanges 時,標記為此屬性的型別已變更行為。 媒體屬性也稱為媒體資源。 儲存時,由 MediaMemberName 屬性表示之型別的媒體屬性會被 POST 要求插入到 URI /<EntitySet>/$value。
在 POST 後,PUT 要求與 MediaMemberName 屬性 (這是二進位內容) 以外型別的所有屬性都會傳送到 URI /<EntitySet>(<key>)。
如需屬性用法的詳細資訊,請參閱Extending Metadata Using Attributes。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。