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
- EmptyStringExpandableObjectConverter.cs
- SqlInfoMessageEvent.cs
- SchemaDeclBase.cs
- SubMenuStyleCollection.cs
- SizeKeyFrameCollection.cs
- FtpWebRequest.cs
- TextSchema.cs
- ConnectionString.cs
- ExistsInCollection.cs
- BezierSegment.cs
- OleDbParameterCollection.cs
- SamlAuthenticationClaimResource.cs
- ComponentDesigner.cs
- XamlDesignerSerializationManager.cs
- DeferredReference.cs
- TreeNodeCollection.cs
- EntityKeyElement.cs
- ConnectionStringsExpressionBuilder.cs
- CallSiteOps.cs
- ColorAnimationBase.cs
- HttpsChannelFactory.cs
- ToolBarTray.cs
- PersonalizationEntry.cs
- IODescriptionAttribute.cs
- TextTreeText.cs
- FileStream.cs
- BigInt.cs
- OuterGlowBitmapEffect.cs
- KnownTypes.cs
- PropertyItemInternal.cs
- XamlFigureLengthSerializer.cs
- Int16Animation.cs
- DateTimeFormatInfoScanner.cs
- XmlChoiceIdentifierAttribute.cs
- BindValidationContext.cs
- SqlTransaction.cs
- DataGridViewAccessibleObject.cs
- ControlFilterExpression.cs
- SyndicationFeedFormatter.cs
- TogglePatternIdentifiers.cs
- XmlStreamNodeWriter.cs
- ApplicationSecurityManager.cs
- ToolStripHighContrastRenderer.cs
- MetadataProperty.cs
- ListViewItemSelectionChangedEvent.cs
- WindowsSpinner.cs
- WmfPlaceableFileHeader.cs
- HtmlEncodedRawTextWriter.cs
- ExpressionVisitor.cs
- DataContext.cs
- InstallerTypeAttribute.cs
- FrameAutomationPeer.cs
- ToolStripPanelSelectionGlyph.cs
- OutputCacheSection.cs
- DescendantOverDescendantQuery.cs
- ScriptRegistrationManager.cs
- Pkcs9Attribute.cs
- Semaphore.cs
- CodeRegionDirective.cs
- DataGridViewElement.cs
- ISAPIRuntime.cs
- NavigationCommands.cs
- Control.cs
- XmlException.cs
- ContextQuery.cs
- DocumentGridPage.cs
- ExpressionEditorAttribute.cs
- LockedAssemblyCache.cs
- ProvidersHelper.cs
- DomainConstraint.cs
- HyperLink.cs
- TreeNodeMouseHoverEvent.cs
- DocumentOrderQuery.cs
- CodeTypeReference.cs
- PropertyGridView.cs
- HandlerMappingMemo.cs
- CustomAttributeBuilder.cs
- AsyncCodeActivity.cs
- SiteMapNodeItemEventArgs.cs
- SupportsEventValidationAttribute.cs
- StorageEndPropertyMapping.cs
- RijndaelManaged.cs
- Int16Converter.cs
- InstanceHandleConflictException.cs
- RepeaterCommandEventArgs.cs
- NullableConverter.cs
- ApplicationServiceManager.cs
- OleDbConnectionInternal.cs
- Point4D.cs
- SqlParameterCollection.cs
- SqlFunctionAttribute.cs
- returneventsaver.cs
- MiniModule.cs
- ColumnTypeConverter.cs
- URLString.cs
- IndentTextWriter.cs
- AnyAllSearchOperator.cs
- SapiGrammar.cs
- GestureRecognizer.cs
- PropertyToken.cs