Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PropertyTabAttribute.cs
- SequentialUshortCollection.cs
- Events.cs
- XmlSchemaSimpleContentRestriction.cs
- PreviewKeyDownEventArgs.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DefaultValueAttribute.cs
- ExpandCollapseProviderWrapper.cs
- DelegateSerializationHolder.cs
- SimpleFieldTemplateFactory.cs
- DataServiceQueryProvider.cs
- SmiEventStream.cs
- DependencyPropertyConverter.cs
- HMACSHA256.cs
- Attributes.cs
- ProxyWebPart.cs
- Walker.cs
- ByeOperationCD1AsyncResult.cs
- XmlBindingWorker.cs
- RayHitTestParameters.cs
- UrlMappingsSection.cs
- ServiceHostingEnvironment.cs
- Baml2006ReaderFrame.cs
- DataGridItemCollection.cs
- FormatterConverter.cs
- ReflectionTypeLoadException.cs
- SqlConnectionFactory.cs
- AstTree.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Int32Rect.cs
- TextParagraphCache.cs
- StatusStrip.cs
- HtmlInputCheckBox.cs
- _ListenerResponseStream.cs
- nulltextnavigator.cs
- CookieHandler.cs
- DataGridViewCellParsingEventArgs.cs
- PageMediaSize.cs
- ProofTokenCryptoHandle.cs
- RecognizerBase.cs
- PreviewKeyDownEventArgs.cs
- GridViewItemAutomationPeer.cs
- TraceUtility.cs
- StrokeNodeOperations2.cs
- Int16.cs
- NullRuntimeConfig.cs
- XmlElementAttributes.cs
- OleDbParameter.cs
- AssemblyCollection.cs
- SqlAliasesReferenced.cs
- DataControlFieldCollection.cs
- AttributeUsageAttribute.cs
- EventPropertyMap.cs
- TimeSpanStorage.cs
- TransformerTypeCollection.cs
- ImageDrawing.cs
- DataGridViewRowHeaderCell.cs
- Baml6Assembly.cs
- ModelTreeManager.cs
- XPathDescendantIterator.cs
- PixelFormats.cs
- WebRequest.cs
- serverconfig.cs
- WaitHandleCannotBeOpenedException.cs
- DynamicQueryableWrapper.cs
- ObjectQuery_EntitySqlExtensions.cs
- HttpVersion.cs
- TabletDeviceInfo.cs
- BaseComponentEditor.cs
- ToolZone.cs
- DataKeyArray.cs
- TemplateNameScope.cs
- HtmlInputControl.cs
- WeakReferenceList.cs
- ScaleTransform.cs
- GetWinFXPath.cs
- TraceUtility.cs
- NotifyIcon.cs
- ObjectCacheSettings.cs
- MonthCalendar.cs
- EdmProviderManifest.cs
- RequestStatusBarUpdateEventArgs.cs
- DrawingAttributeSerializer.cs
- Polyline.cs
- ObjectReferenceStack.cs
- FormView.cs
- TypedRowGenerator.cs
- OrderingExpression.cs
- BufferedGraphicsManager.cs
- PrePrepareMethodAttribute.cs
- SizeValueSerializer.cs
- CodeNamespaceImport.cs
- SqlBuilder.cs
- CollectionContainer.cs
- QueryFunctions.cs
- UpdateException.cs
- LinkedResourceCollection.cs
- HeaderUtility.cs
- MetadataCache.cs
- _ContextAwareResult.cs