Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SelectionListDesigner.cs
- OwnerDrawPropertyBag.cs
- BitmapEffectInputData.cs
- _SslState.cs
- FixedBufferAttribute.cs
- ObjectListField.cs
- BatchServiceHost.cs
- AncillaryOps.cs
- WebScriptMetadataMessage.cs
- SetStoryboardSpeedRatio.cs
- DataObjectMethodAttribute.cs
- webproxy.cs
- BooleanConverter.cs
- AdPostCacheSubstitution.cs
- StretchValidation.cs
- CompositeScriptReference.cs
- UIElement.cs
- MainMenu.cs
- QilInvoke.cs
- PartitionResolver.cs
- TextChangedEventArgs.cs
- PropertyGridCommands.cs
- StructuredProperty.cs
- ContentControl.cs
- bidPrivateBase.cs
- WebPartMenuStyle.cs
- RectAnimationClockResource.cs
- WindowsFormsHostPropertyMap.cs
- SqlDataSource.cs
- ToolStripDesignerAvailabilityAttribute.cs
- EventData.cs
- JsonReaderDelegator.cs
- Point4DValueSerializer.cs
- TextComposition.cs
- XsltArgumentList.cs
- LinearKeyFrames.cs
- LoginDesignerUtil.cs
- HtmlTextViewAdapter.cs
- StylusButtonCollection.cs
- XhtmlMobileTextWriter.cs
- CodeCastExpression.cs
- login.cs
- PenThreadWorker.cs
- UpdatePanelTriggerCollection.cs
- ManagementExtension.cs
- _AutoWebProxyScriptEngine.cs
- DbConnectionPoolIdentity.cs
- RuleSetCollection.cs
- TreeNodeCollection.cs
- GACIdentityPermission.cs
- XmlNotation.cs
- RegexCode.cs
- SQLBoolean.cs
- TextAdaptor.cs
- Rotation3D.cs
- WeakReadOnlyCollection.cs
- DataGridViewEditingControlShowingEventArgs.cs
- HttpHandlersSection.cs
- StylusEventArgs.cs
- DataSourceSelectArguments.cs
- Module.cs
- FixedDocumentSequencePaginator.cs
- TextParaLineResult.cs
- NotCondition.cs
- ActivityInstanceMap.cs
- BitmapEffectInput.cs
- FontNameEditor.cs
- StylusDownEventArgs.cs
- HostVisual.cs
- ThreadInterruptedException.cs
- OuterGlowBitmapEffect.cs
- Table.cs
- WpfKnownType.cs
- WSSecurityTokenSerializer.cs
- GridViewColumnHeaderAutomationPeer.cs
- DateTimeOffsetStorage.cs
- SingleAnimationBase.cs
- InteropBitmapSource.cs
- GuidelineCollection.cs
- CompoundFileReference.cs
- RegexCharClass.cs
- DataGridViewUtilities.cs
- IMembershipProvider.cs
- ItemContainerGenerator.cs
- ThicknessAnimation.cs
- XmlSchemaInfo.cs
- RowUpdatingEventArgs.cs
- HttpApplication.cs
- JoinCqlBlock.cs
- ThreadStateException.cs
- Common.cs
- BrushMappingModeValidation.cs
- PhysicalOps.cs
- Geometry3D.cs
- StylusButton.cs
- RoutedCommand.cs
- WhitespaceReader.cs
- SqlUdtInfo.cs
- SchemaRegistration.cs
- ClockGroup.cs