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
- InfoCardService.cs
- ExceptionHandlerDesigner.cs
- OdbcEnvironment.cs
- SqlUtils.cs
- DependencyPropertyHelper.cs
- QueryParameter.cs
- CodeVariableReferenceExpression.cs
- KeysConverter.cs
- validation.cs
- RuntimeHelpers.cs
- Highlights.cs
- CatalogZoneDesigner.cs
- Properties.cs
- GZipDecoder.cs
- ValueUtilsSmi.cs
- ConnectionManagementElement.cs
- StylusEditingBehavior.cs
- Resources.Designer.cs
- SymDocumentType.cs
- CheckStoreFileValidityRequest.cs
- CompiledIdentityConstraint.cs
- DispatcherHooks.cs
- ExtractedStateEntry.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- AnnotationResource.cs
- WebPartVerbCollection.cs
- XPathChildIterator.cs
- SequenceNumber.cs
- AssemblyBuilder.cs
- UriTemplate.cs
- CommonDialog.cs
- PtsPage.cs
- SessionStateSection.cs
- SqlTransaction.cs
- DataSourceSelectArguments.cs
- Model3DCollection.cs
- TypedTableBase.cs
- Int32Converter.cs
- FlowSwitch.cs
- BinaryMethodMessage.cs
- EventMetadata.cs
- ProxyBuilder.cs
- AncillaryOps.cs
- QualifiedCellIdBoolean.cs
- EventQueueState.cs
- PropertyValue.cs
- FixedHyperLink.cs
- HorizontalAlignConverter.cs
- XmlSchemaDatatype.cs
- ToolStripPanel.cs
- _OSSOCK.cs
- SystemFonts.cs
- BuildDependencySet.cs
- DictionaryChange.cs
- StorageMappingFragment.cs
- SafeViewOfFileHandle.cs
- ExponentialEase.cs
- SafeBitVector32.cs
- LoaderAllocator.cs
- FlowPosition.cs
- DataSourceXmlElementAttribute.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- ActiveXSite.cs
- Grid.cs
- BuildProvidersCompiler.cs
- MethodBody.cs
- XmlSchema.cs
- UrlMappingCollection.cs
- TransformPattern.cs
- DiagnosticStrings.cs
- DesignerActionHeaderItem.cs
- TableItemProviderWrapper.cs
- SystemIdentity.cs
- SystemTcpStatistics.cs
- KnownTypes.cs
- System.Data.OracleClient_BID.cs
- KeyInstance.cs
- DataSourceIDConverter.cs
- BoundsDrawingContextWalker.cs
- EffectiveValueEntry.cs
- SchemaNames.cs
- IntPtr.cs
- ItemsControlAutomationPeer.cs
- TextEffectResolver.cs
- XMLSchema.cs
- HttpListenerException.cs
- BitmapEffectvisualstate.cs
- sqlmetadatafactory.cs
- EventManager.cs
- RawKeyboardInputReport.cs
- LogManagementAsyncResult.cs
- ClientConvert.cs
- WindowsGraphics2.cs
- RegexCaptureCollection.cs
- followingsibling.cs
- ActivityExecutionFilter.cs
- EntityDataSourceView.cs
- FunctionOverloadResolver.cs
- ErasingStroke.cs
- iisPickupDirectory.cs