Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1 / 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; using System.Diagnostics; ////// 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 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) { 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; using System.Diagnostics; ////// 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 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) { 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
- XmlSequenceWriter.cs
- SystemDiagnosticsSection.cs
- ServiceHttpHandlerFactory.cs
- PtsCache.cs
- DbConnectionOptions.cs
- VirtualPath.cs
- WindowsListViewItemStartMenu.cs
- _FtpControlStream.cs
- RoutingTable.cs
- NamespaceCollection.cs
- StringSorter.cs
- FixedPage.cs
- Int32Converter.cs
- HyperLinkStyle.cs
- SoapEnvelopeProcessingElement.cs
- WinEventTracker.cs
- MessageDecoder.cs
- PolyQuadraticBezierSegment.cs
- MenuItemStyle.cs
- DocumentSchemaValidator.cs
- XmlValidatingReader.cs
- TextureBrush.cs
- RawStylusInputCustomDataList.cs
- TraceRecord.cs
- XmlNullResolver.cs
- Converter.cs
- EditingMode.cs
- RectAnimation.cs
- DataGridGeneralPage.cs
- TemplateControl.cs
- BroadcastEventHelper.cs
- TextBoxView.cs
- Misc.cs
- Geometry.cs
- CharUnicodeInfo.cs
- QueuePathEditor.cs
- PersonalizationProvider.cs
- RuntimeHandles.cs
- bidPrivateBase.cs
- ListViewItemSelectionChangedEvent.cs
- TypeUnloadedException.cs
- EncoderNLS.cs
- PerfCounters.cs
- AdapterDictionary.cs
- ExceptionNotification.cs
- X509KeyIdentifierClauseType.cs
- ManualWorkflowSchedulerService.cs
- CompositeTypefaceMetrics.cs
- CheckPair.cs
- XmlQueryContext.cs
- PathFigure.cs
- BamlRecordWriter.cs
- Simplifier.cs
- VisualStyleRenderer.cs
- SqlFunctionAttribute.cs
- TypeCollectionDesigner.xaml.cs
- PropertyGridCommands.cs
- ScriptingWebServicesSectionGroup.cs
- SpecialNameAttribute.cs
- CriticalFinalizerObject.cs
- ContainerCodeDomSerializer.cs
- WmlLabelAdapter.cs
- DoubleCollectionConverter.cs
- DispatcherHooks.cs
- DocumentViewerBase.cs
- MimeParameter.cs
- ForwardPositionQuery.cs
- DataGridViewRowPrePaintEventArgs.cs
- ProviderException.cs
- NullNotAllowedCollection.cs
- ResourcePermissionBase.cs
- TextBoxView.cs
- AuthenticationServiceManager.cs
- EndOfStreamException.cs
- AssociationTypeEmitter.cs
- Vars.cs
- HtmlInputHidden.cs
- OrderedDictionary.cs
- MetadataArtifactLoaderCompositeResource.cs
- ListBindableAttribute.cs
- Identifier.cs
- UniqueIdentifierService.cs
- LocationEnvironment.cs
- PenLineJoinValidation.cs
- ObjectHandle.cs
- CalendarDay.cs
- XmlSchemaValidationException.cs
- ThrowHelper.cs
- ImageBrush.cs
- ConnectionPointCookie.cs
- XamlReader.cs
- XmlILModule.cs
- ProxyWebPartConnectionCollection.cs
- VirtualPath.cs
- FontStyles.cs
- SystemIPv6InterfaceProperties.cs
- TextStore.cs
- ResourcesBuildProvider.cs
- NumberFormatter.cs
- DataGridViewCellErrorTextNeededEventArgs.cs