HTTP 要求の MIME の種類を示します。
継承階層
System.Object
System.Attribute
System.Data.Services.MimeTypeAttribute
名前空間: System.Data.Services
アセンブリ: Microsoft.Data.Services (Microsoft.Data.Services.dll)
構文
'宣言
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := True)> _
Public NotInheritable Class MimeTypeAttribute _
Inherits Attribute
'使用
Dim instance As MimeTypeAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MimeTypeAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = true)]
public ref class MimeTypeAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)>]
type MimeTypeAttribute =
class
inherit Attribute
end
public final class MimeTypeAttribute extends Attribute
MimeTypeAttribute 型は、以下のメンバーを公開しています。
コンストラクター
| 名前 | 説明 | |
|---|---|---|
![]() |
MimeTypeAttribute | MimeTypeAttribute クラスの新しいインスタンスを初期化します。 |
先頭に戻る
プロパティ
| 名前 | 説明 | |
|---|---|---|
![]() |
MemberName | 属性の名前を取得します。 |
![]() |
MimeType | 要求の MIME の種類を取得します。 |
![]() |
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 から継承されています。) |
先頭に戻る
説明
クライアントからデータ サービスに送信される要求は、使用されるシリアル化形式が Content-Type HTTP ヘッダーによって制御されます。 データ サービスからの応答に使用される形式は、既定では Accept HTTP ヘッダーによって制御されます。 Accept ヘッダーは、要求への応答が、一連の特定の MIME の種類に制限されていることを示すために使用されます。 その後、Accept ヘッダーの解析によって返された MIME の種類が応答形式として使用されます。
スレッド セーフ
この型の public static (Visual Basic では Shared) のメンバーはすべて、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
.gif)
.gif)
.gif)
.gif)
.gif)