Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ListViewDeletedEventArgs.cs
- HotSpot.cs
- WhileDesigner.cs
- _NativeSSPI.cs
- SiteMapNodeCollection.cs
- ParenthesizePropertyNameAttribute.cs
- GridSplitterAutomationPeer.cs
- DateTimeValueSerializerContext.cs
- Validator.cs
- DataGridViewRowPostPaintEventArgs.cs
- SecurityTokenProvider.cs
- DataListItemCollection.cs
- PtsCache.cs
- MarkupCompilePass1.cs
- PathSegment.cs
- DataServiceContext.cs
- JapaneseLunisolarCalendar.cs
- SemaphoreSecurity.cs
- KeyInstance.cs
- ConsumerConnectionPointCollection.cs
- ErrorRuntimeConfig.cs
- AppearanceEditorPart.cs
- AuthenticateEventArgs.cs
- ExecutorLocksHeldException.cs
- HttpProfileBase.cs
- WebPartZoneCollection.cs
- DocumentXmlWriter.cs
- FixedSOMTable.cs
- Span.cs
- Line.cs
- WebPartCloseVerb.cs
- BadImageFormatException.cs
- GetFileNameResult.cs
- StoreItemCollection.cs
- DesignerView.xaml.cs
- SamlAuthorityBinding.cs
- Int32Animation.cs
- ErrorFormatterPage.cs
- EmptyControlCollection.cs
- ConfigurationCollectionAttribute.cs
- DataDocumentXPathNavigator.cs
- Tokenizer.cs
- SocketAddress.cs
- Config.cs
- SemanticBasicElement.cs
- UnknownBitmapDecoder.cs
- DataGridViewColumnDesigner.cs
- BitmapSizeOptions.cs
- StorageInfo.cs
- NameTable.cs
- ShadowGlyph.cs
- ProfileService.cs
- DbParameterCollection.cs
- RestClientProxyHandler.cs
- XmlSerializerVersionAttribute.cs
- EntityDataSourceChangingEventArgs.cs
- MetadataStore.cs
- RuleSettingsCollection.cs
- CryptoConfig.cs
- OperandQuery.cs
- AlgoModule.cs
- ConsoleCancelEventArgs.cs
- DrawingBrush.cs
- EnumMember.cs
- TextProviderWrapper.cs
- GeometryModel3D.cs
- HttpResponse.cs
- Pen.cs
- TableLayoutPanelCellPosition.cs
- SByteConverter.cs
- StateDesignerConnector.cs
- FolderBrowserDialogDesigner.cs
- ContractCodeDomInfo.cs
- ExclusiveHandleList.cs
- BindingContext.cs
- SafeArrayTypeMismatchException.cs
- GridViewRowEventArgs.cs
- CodeDelegateInvokeExpression.cs
- ClickablePoint.cs
- AsynchronousChannel.cs
- XamlInt32CollectionSerializer.cs
- TabPanel.cs
- NamespaceCollection.cs
- TextUtf8RawTextWriter.cs
- Variable.cs
- LicFileLicenseProvider.cs
- BitmapMetadataBlob.cs
- Columns.cs
- ObjectSet.cs
- ZipPackagePart.cs
- TextElementAutomationPeer.cs
- ContextMarshalException.cs
- RetrieveVirtualItemEventArgs.cs
- Convert.cs
- nulltextnavigator.cs
- DashStyle.cs
- OleDbRowUpdatedEvent.cs
- ClearCollection.cs
- CallId.cs
- PreviewPageInfo.cs