MimeTypePropertyAttribute 类

批注已用 MediaEntryAttribute 进行批注的类上的属性。

继承层次结构

System.Object
  System.Attribute
    System.Data.Services.Client.MimeTypePropertyAttribute

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

语法

声明
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := False, Inherited := True)> _
Public NotInheritable Class MimeTypePropertyAttribute _
    Inherits Attribute
用法
Dim instance As MimeTypePropertyAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MimeTypePropertyAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = false, Inherited = true)]
public ref class MimeTypePropertyAttribute sealed : public Attribute
[<SealedAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)>]
type MimeTypePropertyAttribute =  
    class
        inherit Attribute
    end
public final class MimeTypePropertyAttribute extends Attribute

MimeTypePropertyAttribute 类型公开以下成员。

构造函数

  名称 说明
公共方法 MimeTypePropertyAttribute 创建 MimeTypePropertyAttribute 的新实例。

页首

属性

  名称 说明
公共属性 DataPropertyName 获取 MimeTypePropertyAttribute 的名称。
公共属性 MimeTypePropertyName 获取 MimeTypePropertyAttribute 的 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 继承。)

页首

注释

MimeTypePropertyAttribute 采用保留 mime 类型与 MediaEntryAttribute 中指定的属性相关联的属性的名称。 当与媒体链接入口相关联的媒体资源由 LoadProperty 方法延迟加载时,指定的属性自动设置为 mime 数据类型。

系统还将读取此属性中的 mime 类型,并使用它来设置 POST 媒体链接入口请求中的 Content-Type 标头。 媒体链接入口是处理二进制数据和元数据的 AtomPub 协议构造。

线程安全

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

请参阅

参考

System.Data.Services.Client 命名空间