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
- WeakReferenceEnumerator.cs
- XmlSchemaResource.cs
- XmlCDATASection.cs
- RSAPKCS1SignatureFormatter.cs
- Menu.cs
- XmlElementList.cs
- Cursors.cs
- LineBreakRecord.cs
- DataRowChangeEvent.cs
- SqlDataSourceStatusEventArgs.cs
- NeutralResourcesLanguageAttribute.cs
- TraceHandlerErrorFormatter.cs
- HiddenFieldPageStatePersister.cs
- UrlPropertyAttribute.cs
- ProgressBarRenderer.cs
- ObjectHandle.cs
- StaticSiteMapProvider.cs
- KeySpline.cs
- Translator.cs
- BadImageFormatException.cs
- DocumentGridContextMenu.cs
- ProtocolsSection.cs
- AccessedThroughPropertyAttribute.cs
- WinFormsSpinner.cs
- DataGridViewColumnConverter.cs
- OdbcConnectionPoolProviderInfo.cs
- oledbconnectionstring.cs
- ChannelSinkStacks.cs
- FieldNameLookup.cs
- SkinBuilder.cs
- WebPartCollection.cs
- PreservationFileWriter.cs
- EventLogPermissionEntry.cs
- OledbConnectionStringbuilder.cs
- UpDownBase.cs
- GridViewColumnHeader.cs
- DomNameTable.cs
- FontCollection.cs
- ActivityDesigner.cs
- xmlfixedPageInfo.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridDetailsPresenter.cs
- DecryptedHeader.cs
- QueryRewriter.cs
- OdbcConnectionPoolProviderInfo.cs
- ButtonFlatAdapter.cs
- DataControlButton.cs
- HostingEnvironmentSection.cs
- MediaSystem.cs
- MetadataPropertyvalue.cs
- TemplateControlBuildProvider.cs
- MethodBuilderInstantiation.cs
- ListBoxItemAutomationPeer.cs
- LeftCellWrapper.cs
- Models.cs
- DataKeyArray.cs
- CssClassPropertyAttribute.cs
- RegionData.cs
- GridView.cs
- ToolboxComponentsCreatingEventArgs.cs
- SynchronizedDisposablePool.cs
- Label.cs
- CodeTypeDeclaration.cs
- OdbcConnection.cs
- WebPartActionVerb.cs
- HttpCookieCollection.cs
- ResXBuildProvider.cs
- HtmlHistory.cs
- ResourceSet.cs
- SortableBindingList.cs
- IPGlobalProperties.cs
- WindowsPrincipal.cs
- ConfigurationManagerHelperFactory.cs
- AutoGeneratedField.cs
- CollectionViewGroupInternal.cs
- SmtpNtlmAuthenticationModule.cs
- ToolboxSnapDragDropEventArgs.cs
- LocatorPartList.cs
- XmlWriter.cs
- ToolStripGripRenderEventArgs.cs
- XmlNodeList.cs
- DeviceContexts.cs
- ButtonBase.cs
- WCFBuildProvider.cs
- TdsParser.cs
- PageAdapter.cs
- Decorator.cs
- SerializableAuthorizationContext.cs
- PointHitTestResult.cs
- NumericExpr.cs
- ResolveCriteriaApril2005.cs
- XmlUtil.cs
- UIElementAutomationPeer.cs
- ScriptIgnoreAttribute.cs
- DataList.cs
- PaperSource.cs
- MaskPropertyEditor.cs
- SafeNativeMethods.cs
- MultiSelectRootGridEntry.cs
- LinkLabel.cs