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
- TypeDescriptionProvider.cs
- RuleProcessor.cs
- GridItemPattern.cs
- AutoCompleteStringCollection.cs
- RtfControlWordInfo.cs
- PocoEntityKeyStrategy.cs
- ObjectListShowCommandsEventArgs.cs
- BrushConverter.cs
- FormsAuthenticationConfiguration.cs
- ApplicationSecurityManager.cs
- regiisutil.cs
- SoapIncludeAttribute.cs
- Exceptions.cs
- compensatingcollection.cs
- DependencyPropertyDescriptor.cs
- FrameworkElementAutomationPeer.cs
- ActivityCodeGenerator.cs
- ApplicationProxyInternal.cs
- NoneExcludedImageIndexConverter.cs
- Overlapped.cs
- ItemPager.cs
- ClientConfigPaths.cs
- AuthenticationService.cs
- VariableElement.cs
- HttpCachePolicyWrapper.cs
- altserialization.cs
- IgnoreSection.cs
- Point.cs
- SqlCommandSet.cs
- SubstitutionDesigner.cs
- DataGridItem.cs
- LinqDataSourceSelectEventArgs.cs
- GridViewRowPresenterBase.cs
- SqlUserDefinedAggregateAttribute.cs
- TransformValueSerializer.cs
- CharacterMetricsDictionary.cs
- MouseGesture.cs
- FastPropertyAccessor.cs
- FileVersion.cs
- StringBuilder.cs
- InlineUIContainer.cs
- LogicalExpr.cs
- PipelineModuleStepContainer.cs
- BuildResult.cs
- CoTaskMemHandle.cs
- _SslStream.cs
- Listbox.cs
- TransformGroup.cs
- GraphicsContainer.cs
- EntityDataSourceSelectedEventArgs.cs
- CategoryGridEntry.cs
- ToolStripArrowRenderEventArgs.cs
- ViewKeyConstraint.cs
- Pkcs9Attribute.cs
- RectKeyFrameCollection.cs
- RayHitTestParameters.cs
- DbParameterHelper.cs
- httpserverutility.cs
- XmlSchema.cs
- TextRangeEdit.cs
- Image.cs
- PaperSize.cs
- ToolStripLabel.cs
- DocumentGrid.cs
- MemoryResponseElement.cs
- LinkLabel.cs
- Geometry3D.cs
- TraceRecord.cs
- OptimalTextSource.cs
- FontNameConverter.cs
- ConstructorNeedsTagAttribute.cs
- ComponentFactoryHelpers.cs
- OracleTimeSpan.cs
- XmlText.cs
- BrushConverter.cs
- ObjectIDGenerator.cs
- PageParserFilter.cs
- GridViewRowCollection.cs
- EntityProviderServices.cs
- ManipulationPivot.cs
- PixelFormatConverter.cs
- MsmqAppDomainProtocolHandler.cs
- TraceEventCache.cs
- BamlRecordHelper.cs
- XsltLoader.cs
- Pair.cs
- CodeBlockBuilder.cs
- DropTarget.cs
- AppDomainShutdownMonitor.cs
- FactoryMaker.cs
- UTF8Encoding.cs
- RayHitTestParameters.cs
- OperationGenerator.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- WebBrowsableAttribute.cs
- GridSplitterAutomationPeer.cs
- XmlElement.cs
- StandardCommandToolStripMenuItem.cs
- WebPartVerbCollection.cs
- HttpCookie.cs