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
- TextFormatterImp.cs
- Model3DGroup.cs
- PropertyChangedEventArgs.cs
- FileLogRecordEnumerator.cs
- DataRelationPropertyDescriptor.cs
- PeerNameRegistration.cs
- RoutedEventHandlerInfo.cs
- XmlSchemaSequence.cs
- RectAnimationClockResource.cs
- DataRecordInfo.cs
- QueryContinueDragEventArgs.cs
- KeyedPriorityQueue.cs
- ChangeProcessor.cs
- SystemColors.cs
- Utils.cs
- OAVariantLib.cs
- ReflectionPermission.cs
- XmlAutoDetectWriter.cs
- SessionParameter.cs
- XmlSchemaSimpleContentExtension.cs
- PartialCachingControl.cs
- FtpWebRequest.cs
- EventSetter.cs
- QilTargetType.cs
- VideoDrawing.cs
- ResolveMatchesMessage11.cs
- CqlParser.cs
- LinkDescriptor.cs
- DefaultExpressionVisitor.cs
- ImageAttributes.cs
- DeferredReference.cs
- Permission.cs
- StandardToolWindows.cs
- CqlWriter.cs
- HttpContextServiceHost.cs
- TextStore.cs
- SweepDirectionValidation.cs
- ZipIOExtraField.cs
- SmtpTransport.cs
- StringFunctions.cs
- SafeUserTokenHandle.cs
- ResourceSetExpression.cs
- QueryOperationResponseOfT.cs
- DesignTimeTemplateParser.cs
- RotationValidation.cs
- RequestDescription.cs
- ProfileProvider.cs
- NotifyParentPropertyAttribute.cs
- CompoundFileIOPermission.cs
- SqlCrossApplyToCrossJoin.cs
- SHA384CryptoServiceProvider.cs
- ClipboardProcessor.cs
- QualifiedId.cs
- TypeListConverter.cs
- ProfessionalColors.cs
- MissingManifestResourceException.cs
- FieldCollectionEditor.cs
- XmlQualifiedName.cs
- AccessViolationException.cs
- SendMailErrorEventArgs.cs
- MenuScrollingVisibilityConverter.cs
- DataGridViewCheckBoxCell.cs
- StringHandle.cs
- DataServiceQueryOfT.cs
- SortQuery.cs
- NumericExpr.cs
- ServiceOperation.cs
- TypeLibConverter.cs
- DataSourceCache.cs
- RepeatBehavior.cs
- TextContainerChangedEventArgs.cs
- DesignerCommandSet.cs
- TypeSource.cs
- DataGridViewTextBoxColumn.cs
- ContextMenuService.cs
- ChildrenQuery.cs
- Html32TextWriter.cs
- MemberJoinTreeNode.cs
- GcSettings.cs
- ProcessModelInfo.cs
- MaskedTextBox.cs
- WeakReferenceList.cs
- cookie.cs
- Expr.cs
- TextMetrics.cs
- CanonicalFormWriter.cs
- StoreAnnotationsMap.cs
- AbandonedMutexException.cs
- DataChangedEventManager.cs
- NotifyParentPropertyAttribute.cs
- SymLanguageVendor.cs
- BinaryFormatter.cs
- BufferBuilder.cs
- TreeBuilderXamlTranslator.cs
- DeploymentSectionCache.cs
- PointAnimation.cs
- SoundPlayer.cs
- ConnectionPointGlyph.cs
- MD5.cs
- RegexMatch.cs