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
- StrokeIntersection.cs
- Error.cs
- LoginView.cs
- ProviderCommandInfoUtils.cs
- TraceLog.cs
- XslAstAnalyzer.cs
- GridPattern.cs
- InvalidProgramException.cs
- ClientTargetCollection.cs
- UniformGrid.cs
- MailMessageEventArgs.cs
- Parameter.cs
- ControlsConfig.cs
- WebPartVerb.cs
- FontStyleConverter.cs
- SpellerStatusTable.cs
- StandardBindingElementCollection.cs
- NetCodeGroup.cs
- ScriptReference.cs
- BitmapSource.cs
- DataPagerFieldCollection.cs
- DocumentPageTextView.cs
- InputLanguageProfileNotifySink.cs
- mediapermission.cs
- Substitution.cs
- TimeSpanStorage.cs
- ArglessEventHandlerProxy.cs
- Knowncolors.cs
- ObjectViewEntityCollectionData.cs
- XPathAncestorIterator.cs
- OdbcDataReader.cs
- ReadOnlyNameValueCollection.cs
- NativeMethods.cs
- MultiPartWriter.cs
- Enlistment.cs
- ZipFileInfo.cs
- AutomationAttributeInfo.cs
- ACE.cs
- ComEventsSink.cs
- TreeNodeBindingCollection.cs
- BitmapImage.cs
- AlignmentXValidation.cs
- InstanceContextManager.cs
- InputGestureCollection.cs
- DataGridColumn.cs
- EmptyEnumerable.cs
- ApplicationId.cs
- CodeRemoveEventStatement.cs
- OneOfTypeConst.cs
- SynchronizationLockException.cs
- Array.cs
- CustomAttribute.cs
- StretchValidation.cs
- ConfigsHelper.cs
- TreeViewItemAutomationPeer.cs
- CodeArrayIndexerExpression.cs
- HebrewNumber.cs
- XmlElementAttributes.cs
- MethodCallExpression.cs
- ProviderIncompatibleException.cs
- SHA1CryptoServiceProvider.cs
- ArgumentOutOfRangeException.cs
- LinearKeyFrames.cs
- FixUpCollection.cs
- ValidatorCollection.cs
- TextFormatterContext.cs
- PolicyStatement.cs
- DataContractJsonSerializerOperationBehavior.cs
- AliasGenerator.cs
- PagerSettings.cs
- KeyboardDevice.cs
- SqlInternalConnectionSmi.cs
- ExpressionConverter.cs
- JsonSerializer.cs
- ExceptionNotification.cs
- Pkcs7Recipient.cs
- LinqDataSourceEditData.cs
- AmbientLight.cs
- PropertyEntry.cs
- LineSegment.cs
- SmtpCommands.cs
- FontFamily.cs
- TokenBasedSetEnumerator.cs
- RelationshipFixer.cs
- PropertyReference.cs
- PointValueSerializer.cs
- PerformanceCounterPermissionEntry.cs
- HttpServerUtilityBase.cs
- RolePrincipal.cs
- FormViewInsertEventArgs.cs
- GeneratedContractType.cs
- SocketManager.cs
- ListViewItemSelectionChangedEvent.cs
- UndoEngine.cs
- IconBitmapDecoder.cs
- EdmError.cs
- DataObject.cs
- DocumentScope.cs
- PageThemeParser.cs
- XsdDataContractImporter.cs