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
- Positioning.cs
- Accessible.cs
- DbParameterCollectionHelper.cs
- ClientBuildManager.cs
- InternalDispatchObject.cs
- Connector.xaml.cs
- BridgeDataReader.cs
- DataGridCaption.cs
- AutomationEvent.cs
- UserValidatedEventArgs.cs
- TraceEventCache.cs
- InkPresenterAutomationPeer.cs
- TextElement.cs
- UserControlParser.cs
- SignerInfo.cs
- ToolStripContextMenu.cs
- SaveFileDialog.cs
- ModelTreeEnumerator.cs
- Regex.cs
- GlyphRun.cs
- Queue.cs
- MeshGeometry3D.cs
- InvalidEnumArgumentException.cs
- TableLayout.cs
- CurrentChangingEventManager.cs
- PointHitTestParameters.cs
- AliasedSlot.cs
- TemplateControlCodeDomTreeGenerator.cs
- RoleGroupCollection.cs
- ListControlActionList.cs
- ProcessHostFactoryHelper.cs
- Line.cs
- ChtmlFormAdapter.cs
- WebBrowserHelper.cs
- QuaternionValueSerializer.cs
- PackageFilter.cs
- ResourceManager.cs
- MemoryFailPoint.cs
- CodeAccessPermission.cs
- AtomMaterializerLog.cs
- InvalidDataException.cs
- PromptEventArgs.cs
- RequestSecurityTokenResponseCollection.cs
- coordinator.cs
- ConsoleCancelEventArgs.cs
- NameSpaceEvent.cs
- SafeBitVector32.cs
- Assert.cs
- StyleBamlTreeBuilder.cs
- Misc.cs
- mil_sdk_version.cs
- SafeThreadHandle.cs
- HandleCollector.cs
- AssemblyNameProxy.cs
- EdmPropertyAttribute.cs
- HttpCachePolicy.cs
- ConnectionPoint.cs
- DependencyPropertyConverter.cs
- QilParameter.cs
- WsdlBuildProvider.cs
- PublisherIdentityPermission.cs
- Button.cs
- XmlSchemaChoice.cs
- EntityDataSourceViewSchema.cs
- BroadcastEventHelper.cs
- WorkflowInstance.cs
- RelationshipEnd.cs
- BufferedWebEventProvider.cs
- TableLayoutCellPaintEventArgs.cs
- DeclarationUpdate.cs
- XmlCountingReader.cs
- DSASignatureDeformatter.cs
- SystemIPv6InterfaceProperties.cs
- PeerUnsafeNativeCryptMethods.cs
- HttpCookieCollection.cs
- ScopelessEnumAttribute.cs
- TypeGeneratedEventArgs.cs
- DbBuffer.cs
- TextSelectionHighlightLayer.cs
- QilCloneVisitor.cs
- JsonDataContract.cs
- BinarySerializer.cs
- SoapProtocolReflector.cs
- TextBox.cs
- UInt64Storage.cs
- SwitchCase.cs
- NamespaceDecl.cs
- PreProcessInputEventArgs.cs
- ViewStateException.cs
- CheckBoxField.cs
- ProfileServiceManager.cs
- TreeViewItemAutomationPeer.cs
- OdbcConnectionHandle.cs
- EntityContainer.cs
- WebPartDeleteVerb.cs
- ProgramNode.cs
- SecurityPermission.cs
- MaterializeFromAtom.cs
- OperandQuery.cs
- PropertyGroupDescription.cs