Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library

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.
© 2015 Microsoft