Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1305376 / 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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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
- MemberRelationshipService.cs
- HTTPAPI_VERSION.cs
- IssuedTokensHeader.cs
- RedistVersionInfo.cs
- DoubleAnimation.cs
- Int16Storage.cs
- DrawingContext.cs
- DataGridColumnHeaderCollection.cs
- TextEditor.cs
- DataGridTextBoxColumn.cs
- XmlSerializerVersionAttribute.cs
- ProfileManager.cs
- ObjectStateEntry.cs
- GridItemPattern.cs
- DataControlPagerLinkButton.cs
- BindMarkupExtensionSerializer.cs
- DataGridViewCellStyleBuilderDialog.cs
- Viewport2DVisual3D.cs
- DataGridViewCellStateChangedEventArgs.cs
- DebugView.cs
- MatrixTransform.cs
- TypedDataSetSchemaImporterExtension.cs
- DiagnosticsConfigurationHandler.cs
- XmlSortKey.cs
- HandleCollector.cs
- ContextMenuStripGroup.cs
- RectangleGeometry.cs
- DrawingContextDrawingContextWalker.cs
- _LocalDataStore.cs
- UIElement.cs
- NegotiateStream.cs
- TableLayoutStyleCollection.cs
- SqlUnionizer.cs
- ConnectionsZoneDesigner.cs
- ConnectionStringsSection.cs
- XmlIlVisitor.cs
- ListControl.cs
- SqlClientMetaDataCollectionNames.cs
- HtmlUtf8RawTextWriter.cs
- SqlSelectStatement.cs
- LingerOption.cs
- Matrix.cs
- LocatorPart.cs
- BasicHttpBindingElement.cs
- EntityContainerEmitter.cs
- ComplexLine.cs
- OleDbException.cs
- RenderContext.cs
- OleDbFactory.cs
- Faults.cs
- StrokeNode.cs
- XmlSchemaFacet.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- KnownBoxes.cs
- DefaultDialogButtons.cs
- PipelineModuleStepContainer.cs
- XmlCodeExporter.cs
- ScriptingRoleServiceSection.cs
- FtpWebRequest.cs
- SafeCoTaskMem.cs
- DesignerDataStoredProcedure.cs
- DataGridViewColumnCollection.cs
- COM2ICategorizePropertiesHandler.cs
- XPathNodePointer.cs
- GetRecipientRequest.cs
- GetImportFileNameRequest.cs
- SystemResourceKey.cs
- EdmComplexTypeAttribute.cs
- MonthChangedEventArgs.cs
- RegisteredDisposeScript.cs
- HtmlElementEventArgs.cs
- ResumeStoryboard.cs
- FreeFormDragDropManager.cs
- ConnectionProviderAttribute.cs
- DesignerTextWriter.cs
- UniqueID.cs
- CodeDesigner.cs
- SqlDependencyUtils.cs
- WebDescriptionAttribute.cs
- ApplicationContext.cs
- NamedPipeDuplicateContext.cs
- DataViewManager.cs
- SdlChannelSink.cs
- ByeOperationCD1AsyncResult.cs
- ClaimComparer.cs
- ObjectDataSourceStatusEventArgs.cs
- WebPartAuthorizationEventArgs.cs
- GridViewRow.cs
- Typography.cs
- NetworkCredential.cs
- TdsValueSetter.cs
- FieldBuilder.cs
- Soap12ProtocolImporter.cs
- SrgsGrammar.cs
- TaskFormBase.cs
- TypeConverterHelper.cs
- SaveFileDialog.cs
- NativeMethods.cs
- BindingContext.cs
- StorageAssociationTypeMapping.cs