Export (0) Print
Expand All

MimeTypePropertyAttribute Class

Annotates a property on a class that has been annotated with the MediaEntryAttribute.

Namespace:  System.Data.Services.Client
Assembly:  System.Data.Services.Client (in System.Data.Services.Client.dll)

[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MimeTypePropertyAttribute : Attribute

The MimeTypePropertyAttribute takes the name of the property that holds the mime type to associate with the property specified in the MediaEntryAttribute. The property specified is automatically set to the mime type of data when a media resource associated with the media link entry is delay-loaded by the LoadProperty method.

The system also reads the mime type from this property and uses it to set the Content-Type header in a POST request for a media link entry. A media link entry is an AtomPub protocol construct for handling binary data and metadata.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1

Community Additions

ADD
Show:
© 2014 Microsoft