Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1305376 / MediaEntryAttribute.cs
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Attribute to denote entity types describing a media entry
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System;
///
/// This class marks a type that represents an Astoria client entity
/// such that the Astoria client will treat it as a media entry
/// according to ATOM's "media link entry" concept.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MediaEntryAttribute : Attribute
{
/// Name of the member that contains the data for the media entry
private readonly string mediaMemberName;
///
/// Creates a new MediaEntryAttribute attribute and sets the name
/// of the member that contains the actual data of the media entry
/// (e.g. a byte[] containing a picture, a string containing HTML, etc.)
///
/// Name of the member that contains the data for the media entry
public MediaEntryAttribute(string mediaMemberName)
{
Util.CheckArgumentNull(mediaMemberName, "mediaMemberName");
this.mediaMemberName = mediaMemberName;
}
/// Name of the member that contains the data for the media entry
public string MediaMemberName
{
get { return this.mediaMemberName; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
//----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Attribute to denote entity types describing a media entry
//
//---------------------------------------------------------------------
namespace System.Data.Services.Client
{
using System;
///
/// This class marks a type that represents an Astoria client entity
/// such that the Astoria client will treat it as a media entry
/// according to ATOM's "media link entry" concept.
///
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public sealed class MediaEntryAttribute : Attribute
{
/// Name of the member that contains the data for the media entry
private readonly string mediaMemberName;
///
/// Creates a new MediaEntryAttribute attribute and sets the name
/// of the member that contains the actual data of the media entry
/// (e.g. a byte[] containing a picture, a string containing HTML, etc.)
///
/// Name of the member that contains the data for the media entry
public MediaEntryAttribute(string mediaMemberName)
{
Util.CheckArgumentNull(mediaMemberName, "mediaMemberName");
this.mediaMemberName = mediaMemberName;
}
/// Name of the member that contains the data for the media entry
public string MediaMemberName
{
get { return this.mediaMemberName; }
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ToolStripDropTargetManager.cs
- Image.cs
- DateTimeParse.cs
- Message.cs
- XmlSchemaAppInfo.cs
- UnsafeNativeMethods.cs
- SetStateEventArgs.cs
- EventBuilder.cs
- File.cs
- SqlTypeConverter.cs
- HttpCacheVaryByContentEncodings.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- XPathDocument.cs
- ToolStripMenuItem.cs
- StringConverter.cs
- SymLanguageVendor.cs
- ButtonStandardAdapter.cs
- TreeViewImageGenerator.cs
- TransactionFlowProperty.cs
- TailCallAnalyzer.cs
- DSASignatureDeformatter.cs
- SettingsBindableAttribute.cs
- Page.cs
- LogicalExpr.cs
- TraceListeners.cs
- Funcletizer.cs
- DesignerHelpers.cs
- TextTreeRootTextBlock.cs
- TransformedBitmap.cs
- SmiContextFactory.cs
- TargetParameterCountException.cs
- XPathDocument.cs
- RegexGroup.cs
- cache.cs
- ColorIndependentAnimationStorage.cs
- CookieParameter.cs
- SqlFacetAttribute.cs
- ProtectedConfiguration.cs
- ClientUtils.cs
- ComIntegrationManifestGenerator.cs
- XmlQueryStaticData.cs
- ProtocolViolationException.cs
- JsonObjectDataContract.cs
- QueueException.cs
- SamlAction.cs
- DataBoundControlParameterTarget.cs
- WinFormsSecurity.cs
- MarshalByRefObject.cs
- ArrayTypeMismatchException.cs
- HideDisabledControlAdapter.cs
- BeginStoryboard.cs
- MemoryMappedFile.cs
- XmlSchemaSimpleTypeUnion.cs
- ChangeTracker.cs
- Rfc2898DeriveBytes.cs
- BitmapEffect.cs
- DataTableCollection.cs
- SmiEventSink_Default.cs
- StatusStrip.cs
- SqlDataSourceEnumerator.cs
- _Events.cs
- XmlTextReader.cs
- ScalarConstant.cs
- CacheDependency.cs
- safelinkcollection.cs
- InvalidChannelBindingException.cs
- Size3D.cs
- FtpWebRequest.cs
- CorrelationManager.cs
- AcceleratedTokenAuthenticator.cs
- LineUtil.cs
- PeerContact.cs
- WebPartUserCapability.cs
- ParseHttpDate.cs
- AssociatedControlConverter.cs
- DmlSqlGenerator.cs
- OrthographicCamera.cs
- DataServiceSaveChangesEventArgs.cs
- XmlUnspecifiedAttribute.cs
- RSAProtectedConfigurationProvider.cs
- NavigationWindowAutomationPeer.cs
- PointLight.cs
- PerfCounters.cs
- RefType.cs
- Win32.cs
- DoubleLink.cs
- SqlProviderManifest.cs
- SkewTransform.cs
- HelpKeywordAttribute.cs
- DynamicPropertyHolder.cs
- DrawListViewItemEventArgs.cs
- SchemaLookupTable.cs
- CqlParserHelpers.cs
- ImageCodecInfo.cs
- JsonSerializer.cs
- ToolStripMenuItem.cs
- NotFiniteNumberException.cs
- InternalsVisibleToAttribute.cs
- OdbcConnectionHandle.cs
- StaticFileHandler.cs