Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

NamedStreamAttribute Class

Indicates that a class that is an entity type has a related named binary stream.


Namespace:  System.Data.Services.Common
Assembly:  Microsoft.Data.Services.Client (in Microsoft.Data.Services.Client.dll)
[AttributeUsageAttribute(AttributeTargets.Class, Inherited = true, AllowMultiple = true)]
public sealed class NamedStreamAttribute : Attribute

The NamedStreamAttribute type exposes the following members.

Public methodNamedStreamAttributeCreates a new instance of the NamedStreamAttribute class.
Public propertyNameThe name of a binary stream that belongs to the attributed entity.
Public propertyTypeId (Inherited from Attribute.)
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)

In terms of the Open Data Protocol (OData), the entity is known as a media link entry and the named binary data stream is a named media resource.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2014 Microsoft. All rights reserved.