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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RequestCacheValidator.cs
- DetailsViewInsertedEventArgs.cs
- SemanticResolver.cs
- XPathAxisIterator.cs
- SystemShuttingDownException.cs
- HttpHandlerActionCollection.cs
- CounterSampleCalculator.cs
- SHA1.cs
- SectionInput.cs
- XmlObjectSerializerReadContextComplexJson.cs
- PropertyValueChangedEvent.cs
- Matrix3DConverter.cs
- FileLevelControlBuilderAttribute.cs
- WSTrustFeb2005.cs
- BamlLocalizabilityResolver.cs
- ContextConfiguration.cs
- MapPathBasedVirtualPathProvider.cs
- MenuBindingsEditorForm.cs
- smtpconnection.cs
- InstancePersistenceEvent.cs
- StreamGeometry.cs
- httpserverutility.cs
- SoapEnvelopeProcessingElement.cs
- Renderer.cs
- DocumentOrderQuery.cs
- WebPartUtil.cs
- TablePattern.cs
- _AcceptOverlappedAsyncResult.cs
- TabOrder.cs
- BuildManagerHost.cs
- ButtonBaseAutomationPeer.cs
- Light.cs
- ComponentEditorForm.cs
- UserNameSecurityToken.cs
- EditCommandColumn.cs
- FastEncoder.cs
- ActivityCodeDomSerializationManager.cs
- WmiEventSink.cs
- EventProxy.cs
- _RequestCacheProtocol.cs
- ProfileBuildProvider.cs
- AppSettingsReader.cs
- SafeEventLogWriteHandle.cs
- ConfigLoader.cs
- QilInvokeLateBound.cs
- HuffmanTree.cs
- TempEnvironment.cs
- BitmapCache.cs
- Container.cs
- DebugTraceHelper.cs
- QuadraticBezierSegment.cs
- DesignerValidationSummaryAdapter.cs
- SecurityImpersonationBehavior.cs
- ForeignKeyConstraint.cs
- RenderDataDrawingContext.cs
- SqlGatherProducedAliases.cs
- DataControlLinkButton.cs
- HtmlEmptyTagControlBuilder.cs
- VirtualDirectoryMappingCollection.cs
- BindingCollection.cs
- COM2EnumConverter.cs
- FacetValues.cs
- XmlReflectionImporter.cs
- XsltLoader.cs
- RequestNavigateEventArgs.cs
- MLangCodePageEncoding.cs
- EmptyCollection.cs
- SystemIPAddressInformation.cs
- TypeReference.cs
- ComponentResourceManager.cs
- SQLBinary.cs
- bindurihelper.cs
- HtmlWindowCollection.cs
- _LocalDataStoreMgr.cs
- PropertyInfoSet.cs
- SafeNativeMethods.cs
- Helpers.cs
- AdditionalEntityFunctions.cs
- SimpleBitVector32.cs
- XamlClipboardData.cs
- SmtpDigestAuthenticationModule.cs
- HttpStreamFormatter.cs
- SymbolType.cs
- AssemblyHash.cs
- OdbcDataAdapter.cs
- SourceElementsCollection.cs
- SqlAggregateChecker.cs
- Imaging.cs
- BatchParser.cs
- WindowsBrush.cs
- JoinCqlBlock.cs
- LineServicesCallbacks.cs
- NameValueFileSectionHandler.cs
- UnknownBitmapEncoder.cs
- XDRSchema.cs
- PathFigureCollection.cs
- Size.cs
- ChildChangedEventArgs.cs
- counter.cs
- ProcessHostServerConfig.cs