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
- DataSourceComponent.cs
- HttpStreamMessageEncoderFactory.cs
- ForEachAction.cs
- DbConnectionOptions.cs
- BackgroundFormatInfo.cs
- assemblycache.cs
- ConnectionStringsExpressionBuilder.cs
- OdbcHandle.cs
- MemoryStream.cs
- DateTime.cs
- WebRequestModulesSection.cs
- FileDialog.cs
- SoundPlayerAction.cs
- XamlWriter.cs
- BrowserCapabilitiesCodeGenerator.cs
- LinqDataSourceContextEventArgs.cs
- AttributeQuery.cs
- ping.cs
- StateManager.cs
- GroupItemAutomationPeer.cs
- SchemaSetCompiler.cs
- XmlQualifiedName.cs
- ScrollProviderWrapper.cs
- Asn1IntegerConverter.cs
- ConfigurationLockCollection.cs
- SystemTcpStatistics.cs
- SupportsEventValidationAttribute.cs
- HtmlWindow.cs
- PropertyPathConverter.cs
- FormatVersion.cs
- SqlConnectionHelper.cs
- Executor.cs
- WindowInteractionStateTracker.cs
- HttpPostedFile.cs
- HtmlContainerControl.cs
- BaseParser.cs
- ExpressionNormalizer.cs
- TrailingSpaceComparer.cs
- CurrentTimeZone.cs
- TrackingMemoryStreamFactory.cs
- ZoneLinkButton.cs
- ColorConverter.cs
- MenuStrip.cs
- ImageCodecInfoPrivate.cs
- NetworkInterface.cs
- SQLDecimalStorage.cs
- DataGridViewCellFormattingEventArgs.cs
- SHA384.cs
- Int32Converter.cs
- StrokeDescriptor.cs
- GroupBox.cs
- OutOfMemoryException.cs
- XPathCompileException.cs
- NetStream.cs
- IdentityHolder.cs
- TableColumn.cs
- BrowserInteropHelper.cs
- TypeLoadException.cs
- AppendHelper.cs
- EntityParameterCollection.cs
- AuthorizationRule.cs
- SQLDouble.cs
- ValidationHelper.cs
- TransformConverter.cs
- TcpTransportManager.cs
- Mapping.cs
- NavigationPropertyEmitter.cs
- EncodingDataItem.cs
- BinaryObjectWriter.cs
- CodeAttachEventStatement.cs
- ClientSponsor.cs
- DataGridViewCellPaintingEventArgs.cs
- LinkClickEvent.cs
- HostedAspNetEnvironment.cs
- Visual3D.cs
- TextViewBase.cs
- CallSite.cs
- CodeDefaultValueExpression.cs
- HtmlControlPersistable.cs
- AnchoredBlock.cs
- PopupControlService.cs
- BaseParaClient.cs
- mediaeventshelper.cs
- RoutedEventArgs.cs
- TextTreeUndo.cs
- CompModHelpers.cs
- BuildManager.cs
- XmlSchemaAnnotated.cs
- XmlTextReaderImpl.cs
- XMLUtil.cs
- XmlElement.cs
- SchemaCollectionPreprocessor.cs
- XpsResourcePolicy.cs
- MetadataUtil.cs
- RegexCompilationInfo.cs
- WebHeaderCollection.cs
- TextEditorThreadLocalStore.cs
- XMLUtil.cs
- WorkflowInstance.cs
- HelpKeywordAttribute.cs