Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1305376 / 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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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
- DecoderFallback.cs
- InputMethodStateChangeEventArgs.cs
- DescendentsWalkerBase.cs
- ArcSegment.cs
- RawStylusInputCustomData.cs
- ChannelOptions.cs
- DesignerRegionCollection.cs
- CurrentTimeZone.cs
- ForeignKeyConstraint.cs
- MaterialGroup.cs
- SQLInt32.cs
- GradientPanel.cs
- BamlRecordReader.cs
- GroupBoxAutomationPeer.cs
- EditorZoneBase.cs
- InstanceDataCollection.cs
- MouseActionConverter.cs
- RootAction.cs
- StorageComplexPropertyMapping.cs
- AppPool.cs
- PropertyPathWorker.cs
- PackageDigitalSignature.cs
- Directory.cs
- PanelStyle.cs
- ExceptionUtil.cs
- CacheEntry.cs
- ProvidersHelper.cs
- SendMailErrorEventArgs.cs
- SafeTimerHandle.cs
- ArrayElementGridEntry.cs
- NullReferenceException.cs
- WebPartActionVerb.cs
- TreeViewDataItemAutomationPeer.cs
- ArglessEventHandlerProxy.cs
- SwitchLevelAttribute.cs
- LinkUtilities.cs
- UnitySerializationHolder.cs
- PropertyTabChangedEvent.cs
- ExpressionCopier.cs
- CounterCreationDataCollection.cs
- HttpModuleAction.cs
- DependencyPropertyKind.cs
- TreeNodeBindingCollection.cs
- SoapInteropTypes.cs
- RetrieveVirtualItemEventArgs.cs
- WebPartTransformer.cs
- ToolboxItemAttribute.cs
- ImageMap.cs
- CrossContextChannel.cs
- SqlConnectionHelper.cs
- TreeViewDataItemAutomationPeer.cs
- XPathNavigator.cs
- SafeNativeMethods.cs
- WmlLinkAdapter.cs
- SqlTriggerAttribute.cs
- DocumentApplicationDocumentViewer.cs
- ConfigurationManagerInternalFactory.cs
- ExpandCollapseIsCheckedConverter.cs
- dtdvalidator.cs
- DesignerAttribute.cs
- TreeViewAutomationPeer.cs
- WorkItem.cs
- WindowsGraphicsCacheManager.cs
- DataControlFieldCollection.cs
- BulletedListEventArgs.cs
- coordinatorscratchpad.cs
- AllowedAudienceUriElement.cs
- ToolboxCategory.cs
- ElementAtQueryOperator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- HtmlInputReset.cs
- bindurihelper.cs
- XsltException.cs
- FixedBufferAttribute.cs
- MaterializeFromAtom.cs
- BaseTemplateBuildProvider.cs
- recordstate.cs
- Keyboard.cs
- DefaultValueConverter.cs
- ApplyImportsAction.cs
- CodeDefaultValueExpression.cs
- FrameworkPropertyMetadata.cs
- ActivityExecutionContext.cs
- GeneralTransformGroup.cs
- HttpValueCollection.cs
- MediaCommands.cs
- Bind.cs
- LongAverageAggregationOperator.cs
- WindowsButton.cs
- TextComposition.cs
- Triplet.cs
- HtmlInputPassword.cs
- SqlOuterApplyReducer.cs
- DefaultWorkflowTransactionService.cs
- safesecurityhelperavalon.cs
- CustomErrorsSection.cs
- ExecutionEngineException.cs
- GestureRecognitionResult.cs
- ObfuscateAssemblyAttribute.cs
- DesignerTransactionCloseEvent.cs