Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- AddInBase.cs
- OSEnvironmentHelper.cs
- FixedSOMTableCell.cs
- DateRangeEvent.cs
- XPathDocument.cs
- WindowsNonControl.cs
- UserInitiatedNavigationPermission.cs
- ActivityPreviewDesigner.cs
- MemberDescriptor.cs
- BasicHttpBindingElement.cs
- PagerSettings.cs
- CornerRadius.cs
- StructuralObject.cs
- RegularExpressionValidator.cs
- InputLanguageEventArgs.cs
- SQLBoolean.cs
- DeviceContexts.cs
- EnumerableRowCollection.cs
- EntityContainer.cs
- CheckBoxFlatAdapter.cs
- OdbcConnectionOpen.cs
- XmlSchemaSimpleContent.cs
- AssemblyAssociatedContentFileAttribute.cs
- IProvider.cs
- Base64Decoder.cs
- ConfigurationSectionCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- NotifyIcon.cs
- EventWaitHandle.cs
- ClientConfigurationSystem.cs
- XmlArrayItemAttributes.cs
- ExpressionNode.cs
- SerializationSectionGroup.cs
- BinaryObjectInfo.cs
- SqlRowUpdatingEvent.cs
- SiteMapNodeItemEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- ToolboxItemCollection.cs
- AssemblyResourceLoader.cs
- ListBase.cs
- CompositeDuplexElement.cs
- SafeNativeMethods.cs
- UserCancellationException.cs
- TransactionInformation.cs
- ItemsControl.cs
- RawStylusSystemGestureInputReport.cs
- XmlConvert.cs
- EncoderReplacementFallback.cs
- ThreadAbortException.cs
- EventLogPermissionAttribute.cs
- TextBoxAutoCompleteSourceConverter.cs
- VideoDrawing.cs
- ScaleTransform3D.cs
- HttpListenerRequest.cs
- RoutedEvent.cs
- EncodingDataItem.cs
- Camera.cs
- HexParser.cs
- TransactionTraceIdentifier.cs
- QualifiedCellIdBoolean.cs
- RepeaterCommandEventArgs.cs
- SqlEnums.cs
- NavigationWindow.cs
- WebPartCatalogCloseVerb.cs
- RelationshipDetailsRow.cs
- SqlDataSourceAdvancedOptionsForm.cs
- WorkflowOperationContext.cs
- UrlMappingsModule.cs
- sqlstateclientmanager.cs
- RootCodeDomSerializer.cs
- ScrollContentPresenter.cs
- AjaxFrameworkAssemblyAttribute.cs
- ItemMap.cs
- BorderGapMaskConverter.cs
- DesignerActionVerbItem.cs
- Matrix3D.cs
- KeyProperty.cs
- TraceLog.cs
- FloaterParagraph.cs
- MarginsConverter.cs
- SecurityPermission.cs
- ButtonBaseAutomationPeer.cs
- FamilyTypefaceCollection.cs
- OperationCanceledException.cs
- ParenthesizePropertyNameAttribute.cs
- PopupEventArgs.cs
- XmlRootAttribute.cs
- ReaderWriterLockSlim.cs
- updateconfighost.cs
- XPathExpr.cs
- DaylightTime.cs
- DownloadProgressEventArgs.cs
- ChildTable.cs
- SwitchLevelAttribute.cs
- XMLSyntaxException.cs
- HtmlHistory.cs
- FlowDocumentPageViewerAutomationPeer.cs
- FocusChangedEventArgs.cs
- FileStream.cs
- XmlTypeMapping.cs