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
- LinkDescriptor.cs
- IEnumerable.cs
- BehaviorDragDropEventArgs.cs
- XmlIterators.cs
- SystemIPInterfaceProperties.cs
- HwndProxyElementProvider.cs
- ObjectContext.cs
- CodeArrayIndexerExpression.cs
- SortDescriptionCollection.cs
- CompiledRegexRunner.cs
- ScrollData.cs
- DbSetClause.cs
- CreateUserErrorEventArgs.cs
- SubstitutionResponseElement.cs
- DuplicateWaitObjectException.cs
- StdValidatorsAndConverters.cs
- SqlUserDefinedAggregateAttribute.cs
- MobileSysDescriptionAttribute.cs
- QilChoice.cs
- TableLayoutSettings.cs
- HashStream.cs
- EnvelopedSignatureTransform.cs
- HttpWriter.cs
- AttributeUsageAttribute.cs
- SoapServerMessage.cs
- TextViewBase.cs
- File.cs
- TabItemWrapperAutomationPeer.cs
- EmptyReadOnlyDictionaryInternal.cs
- PointIndependentAnimationStorage.cs
- Options.cs
- DispatchWrapper.cs
- XmlArrayItemAttribute.cs
- QilXmlWriter.cs
- OperationValidationEventArgs.cs
- HtmlSelect.cs
- XamlPoint3DCollectionSerializer.cs
- UnaryNode.cs
- XmlSchemaSimpleTypeUnion.cs
- RequestQueryParser.cs
- ModuleElement.cs
- Transform3D.cs
- ClientBuildManagerCallback.cs
- MessagePropertyDescriptionCollection.cs
- GenerateScriptTypeAttribute.cs
- WindowsIdentity.cs
- ParameterBuilder.cs
- CodeDomSerializerException.cs
- CellParaClient.cs
- HTMLTextWriter.cs
- CheckBoxBaseAdapter.cs
- EditBehavior.cs
- SizeConverter.cs
- WebPartZoneBase.cs
- IfAction.cs
- Panel.cs
- XmlLoader.cs
- EncryptedReference.cs
- IssuedTokenServiceElement.cs
- SafeArrayRankMismatchException.cs
- sapiproxy.cs
- XPathNodeHelper.cs
- TypeSystemProvider.cs
- WindowsRebar.cs
- contentDescriptor.cs
- IFlowDocumentViewer.cs
- RuntimeIdentifierPropertyAttribute.cs
- PropertyCondition.cs
- PeerNameRecord.cs
- ToolboxSnapDragDropEventArgs.cs
- ItemCollection.cs
- CodeFieldReferenceExpression.cs
- NotifyCollectionChangedEventArgs.cs
- StorageSetMapping.cs
- HashAlgorithm.cs
- MenuRendererClassic.cs
- Rect.cs
- SoundPlayer.cs
- BitStream.cs
- smtppermission.cs
- TemplateApplicationHelper.cs
- LinqDataSourceStatusEventArgs.cs
- WebPartZoneBase.cs
- ApplicationTrust.cs
- StatusBarDrawItemEvent.cs
- IgnoreDataMemberAttribute.cs
- DispatcherExceptionFilterEventArgs.cs
- GridErrorDlg.cs
- CodeIterationStatement.cs
- XmlTextAttribute.cs
- DodSequenceMerge.cs
- Action.cs
- ExternalException.cs
- wmiprovider.cs
- GeometryDrawing.cs
- WinEventQueueItem.cs
- SqlClientWrapperSmiStream.cs
- SqlInfoMessageEvent.cs
- AnimationClock.cs
- AttachedPropertyMethodSelector.cs