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
- bidPrivateBase.cs
- ConfigurationLoaderException.cs
- PinnedBufferMemoryStream.cs
- _CacheStreams.cs
- Send.cs
- TextRangeEdit.cs
- Int16.cs
- XmlWrappingReader.cs
- ToolStripScrollButton.cs
- AsyncOperation.cs
- TypeSystem.cs
- TrackingMemoryStreamFactory.cs
- ConversionHelper.cs
- TriggerCollection.cs
- TripleDES.cs
- DataBoundControlAdapter.cs
- MessageSmuggler.cs
- BmpBitmapDecoder.cs
- Grant.cs
- DbExpressionBuilder.cs
- WebZone.cs
- ControllableStoryboardAction.cs
- PageThemeCodeDomTreeGenerator.cs
- TreeNodeBinding.cs
- DispatcherEventArgs.cs
- HashCodeCombiner.cs
- StreamGeometry.cs
- GorillaCodec.cs
- Int64Converter.cs
- AssemblyCache.cs
- UTF8Encoding.cs
- OrderToken.cs
- WorkflowDefinitionDispenser.cs
- LocationSectionRecord.cs
- CookielessHelper.cs
- ClientScriptManagerWrapper.cs
- SqlCommandBuilder.cs
- HuffModule.cs
- BooleanFacetDescriptionElement.cs
- InkCanvas.cs
- SelectionHighlightInfo.cs
- FontClient.cs
- RegisteredHiddenField.cs
- GPStream.cs
- DataGridViewComboBoxEditingControl.cs
- TableRowGroupCollection.cs
- Content.cs
- Stylus.cs
- Quaternion.cs
- EnumConverter.cs
- _SslState.cs
- precedingsibling.cs
- Configuration.cs
- XpsFilter.cs
- AnnotationComponentManager.cs
- AnnouncementService.cs
- ContentDisposition.cs
- BoolExpressionVisitors.cs
- EUCJPEncoding.cs
- UpnEndpointIdentityExtension.cs
- X509Certificate2.cs
- SqlInternalConnection.cs
- Memoizer.cs
- RoleBoolean.cs
- ValuePattern.cs
- Utils.cs
- SizeChangedEventArgs.cs
- controlskin.cs
- Ray3DHitTestResult.cs
- XPathNodePointer.cs
- EnumUnknown.cs
- MsdtcWrapper.cs
- Vector3DIndependentAnimationStorage.cs
- StatusBar.cs
- ISFTagAndGuidCache.cs
- BoundsDrawingContextWalker.cs
- HostSecurityManager.cs
- ValidatorCollection.cs
- MembershipValidatePasswordEventArgs.cs
- HttpResponseHeader.cs
- Point3DCollection.cs
- DataGridViewSelectedColumnCollection.cs
- IISMapPath.cs
- LostFocusEventManager.cs
- BitSet.cs
- FormViewModeEventArgs.cs
- TypeGeneratedEventArgs.cs
- XsltLibrary.cs
- ImageCodecInfo.cs
- BitArray.cs
- SemaphoreSecurity.cs
- CryptoStream.cs
- DataServiceHostWrapper.cs
- SoapInteropTypes.cs
- Itemizer.cs
- Error.cs
- _TransmitFileOverlappedAsyncResult.cs
- ConnectionOrientedTransportChannelFactory.cs
- ILGenerator.cs
- DataDocumentXPathNavigator.cs