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
- ProtocolViolationException.cs
- WindowsStatic.cs
- BitmapEffectGroup.cs
- parserscommon.cs
- ControlBuilder.cs
- RegexRunner.cs
- QueryCacheManager.cs
- RowsCopiedEventArgs.cs
- Processor.cs
- NameSpaceExtractor.cs
- TextAnchor.cs
- assemblycache.cs
- SubpageParagraph.cs
- ToolboxItemFilterAttribute.cs
- GreenMethods.cs
- OdbcParameter.cs
- _BaseOverlappedAsyncResult.cs
- AnchoredBlock.cs
- SQLByte.cs
- DSACryptoServiceProvider.cs
- SmiSettersStream.cs
- DropDownButton.cs
- AppearanceEditorPart.cs
- StrokeRenderer.cs
- SafeNativeMethodsCLR.cs
- ConfigurationSectionGroup.cs
- TextTreeObjectNode.cs
- BamlMapTable.cs
- SkinBuilder.cs
- MsmqProcessProtocolHandler.cs
- TreeViewEvent.cs
- DataGridCommandEventArgs.cs
- unsafenativemethodstextservices.cs
- TdsParameterSetter.cs
- SessionStateItemCollection.cs
- GroupAggregateExpr.cs
- NamedPipeHostedTransportConfiguration.cs
- LocatorManager.cs
- Metafile.cs
- Int16AnimationUsingKeyFrames.cs
- WindowsGraphics2.cs
- updateconfighost.cs
- ExitEventArgs.cs
- ListBox.cs
- RegexCompilationInfo.cs
- TraceContext.cs
- NominalTypeEliminator.cs
- XsltSettings.cs
- SmiMetaDataProperty.cs
- OdbcCommandBuilder.cs
- EventRecord.cs
- FillBehavior.cs
- EventTrigger.cs
- StreamUpgradeAcceptor.cs
- DetailsViewPagerRow.cs
- BrowserDefinitionCollection.cs
- ListViewCancelEventArgs.cs
- TableRowCollection.cs
- ValidationErrorEventArgs.cs
- IteratorDescriptor.cs
- SymmetricKey.cs
- ThumbButtonInfo.cs
- SqlRowUpdatingEvent.cs
- MappingSource.cs
- Mutex.cs
- ResXResourceWriter.cs
- Int16Animation.cs
- GenericTextProperties.cs
- TemplateXamlParser.cs
- DataBinder.cs
- TranslateTransform3D.cs
- ExtendedPropertyInfo.cs
- DataGridViewAccessibleObject.cs
- TextSelectionHelper.cs
- CodeGenerationManager.cs
- SpeakInfo.cs
- HtmlInputCheckBox.cs
- ResourceSet.cs
- InvalidComObjectException.cs
- OdbcParameterCollection.cs
- SchemaElementDecl.cs
- DataBoundControlActionList.cs
- ItemCheckEvent.cs
- DesignerActionUIStateChangeEventArgs.cs
- dbdatarecord.cs
- DataGridViewAccessibleObject.cs
- SimpleBitVector32.cs
- EmptyEnumerator.cs
- SoapAttributeOverrides.cs
- ScrollItemProviderWrapper.cs
- SyntaxCheck.cs
- X509AsymmetricSecurityKey.cs
- BamlResourceDeserializer.cs
- BaseDataBoundControl.cs
- XmlTextWriter.cs
- TypeSource.cs
- GridViewDeletedEventArgs.cs
- TypeLibConverter.cs
- ListViewAutomationPeer.cs
- XmlDataSource.cs