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
- LockedHandleGlyph.cs
- XmlQualifiedName.cs
- CmsUtils.cs
- CharKeyFrameCollection.cs
- ValidatingCollection.cs
- InkPresenter.cs
- HeaderCollection.cs
- IInstanceTable.cs
- XamlParser.cs
- ObjectManager.cs
- ComplexType.cs
- TextDecorationCollection.cs
- GlobalizationSection.cs
- HostProtectionException.cs
- AssemblyLoader.cs
- BasicBrowserDialog.cs
- WebHttpSecurity.cs
- VirtualizedItemPattern.cs
- Command.cs
- RewritingPass.cs
- ParameterReplacerVisitor.cs
- FastEncoder.cs
- DesignDataSource.cs
- MemoryFailPoint.cs
- TagMapInfo.cs
- TypeLoadException.cs
- StyleHelper.cs
- XamlWriter.cs
- AutoResizedEvent.cs
- Model3DCollection.cs
- PerformanceCounterPermissionEntry.cs
- CapabilitiesPattern.cs
- RectKeyFrameCollection.cs
- DataRecordObjectView.cs
- ServiceModelDictionary.cs
- CqlLexerHelpers.cs
- DelegatingConfigHost.cs
- Vector3D.cs
- ErrorEventArgs.cs
- ToolStripItemImageRenderEventArgs.cs
- DropDownList.cs
- DomainConstraint.cs
- PngBitmapEncoder.cs
- PropertyGridCommands.cs
- AlignmentYValidation.cs
- DependencyPropertyChangedEventArgs.cs
- TextFindEngine.cs
- PrintControllerWithStatusDialog.cs
- StackSpiller.Temps.cs
- CompleteWizardStep.cs
- IndexerNameAttribute.cs
- CodeTypeMemberCollection.cs
- WSSecurityXXX2005.cs
- DependencyPropertyChangedEventArgs.cs
- Grant.cs
- Pkcs7Recipient.cs
- TextEffectCollection.cs
- InkCanvasSelectionAdorner.cs
- ComponentEditorPage.cs
- ButtonFieldBase.cs
- PaginationProgressEventArgs.cs
- TextRenderer.cs
- ListSortDescription.cs
- PseudoWebRequest.cs
- TypeTypeConverter.cs
- Rectangle.cs
- AdornedElementPlaceholder.cs
- Number.cs
- ProtocolElementCollection.cs
- ImageCollectionEditor.cs
- AvTraceDetails.cs
- CurrentChangedEventManager.cs
- XmlBindingWorker.cs
- UpdateProgress.cs
- KeyValueConfigurationElement.cs
- LogLogRecordEnumerator.cs
- XXXInfos.cs
- ExtendedPropertyCollection.cs
- Property.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ResourceDefaultValueAttribute.cs
- HandlerBase.cs
- DataGridViewColumnCollectionDialog.cs
- DashStyles.cs
- DataKeyPropertyAttribute.cs
- MouseActionConverter.cs
- DataGridTableCollection.cs
- DataContract.cs
- GlyphCollection.cs
- IPGlobalProperties.cs
- AspProxy.cs
- InheritanceContextHelper.cs
- MobileTemplatedControlDesigner.cs
- ErrorWrapper.cs
- PrivilegedConfigurationManager.cs
- DataGridHyperlinkColumn.cs
- Vector3DKeyFrameCollection.cs
- BamlBinaryReader.cs
- DataGridViewRowConverter.cs
- SafeLocalMemHandle.cs