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
- AdapterDictionary.cs
- ColorBlend.cs
- StylusPlugInCollection.cs
- Msec.cs
- ManualResetEvent.cs
- BooleanFunctions.cs
- UriTemplateTrieLocation.cs
- NotCondition.cs
- Span.cs
- RSAPKCS1SignatureDeformatter.cs
- DataGridComboBoxColumn.cs
- DataGridViewRow.cs
- SymbolEqualComparer.cs
- ContextStack.cs
- RefExpr.cs
- DelegateHelpers.cs
- Base64Encoding.cs
- AbsoluteQuery.cs
- BitmapEffectGroup.cs
- ViewManager.cs
- DeferredSelectedIndexReference.cs
- Suspend.cs
- RefreshEventArgs.cs
- MemoryFailPoint.cs
- OSEnvironmentHelper.cs
- MultiAsyncResult.cs
- Table.cs
- WaitForChangedResult.cs
- IPHostEntry.cs
- FileChangesMonitor.cs
- DataMemberFieldEditor.cs
- DBCSCodePageEncoding.cs
- ArraySortHelper.cs
- DesignerHelpers.cs
- MonthChangedEventArgs.cs
- OleDbStruct.cs
- AutoGeneratedField.cs
- XmlEntityReference.cs
- Int32Converter.cs
- ConfigurationSectionCollection.cs
- WebPartTracker.cs
- GenericIdentity.cs
- ConvertEvent.cs
- Error.cs
- SourceExpressionException.cs
- WebPartEditorOkVerb.cs
- X509CertificateCollection.cs
- ReadOnlyDataSource.cs
- DependencyObjectCodeDomSerializer.cs
- EncoderReplacementFallback.cs
- RadialGradientBrush.cs
- ReachSerializableProperties.cs
- HostVisual.cs
- ICspAsymmetricAlgorithm.cs
- Effect.cs
- ViewGenerator.cs
- DataGridItem.cs
- ArraySegment.cs
- XmlSchemaImporter.cs
- QilCloneVisitor.cs
- BamlCollectionHolder.cs
- EntityDesignerDataSourceView.cs
- BitConverter.cs
- ColumnCollection.cs
- GeneratedContractType.cs
- FrameworkContentElement.cs
- ClipboardProcessor.cs
- PassportAuthentication.cs
- SmiRecordBuffer.cs
- FlowDocumentReader.cs
- HtmlInputControl.cs
- Properties.cs
- FigureHelper.cs
- Grant.cs
- TogglePatternIdentifiers.cs
- SQLMembershipProvider.cs
- ObjectDataSourceFilteringEventArgs.cs
- SafeCryptoHandles.cs
- SqlUtils.cs
- SafeFileMappingHandle.cs
- AsymmetricSignatureDeformatter.cs
- ExpressionBuilder.cs
- EncoderExceptionFallback.cs
- BrowserCapabilitiesFactoryBase.cs
- Transform3DGroup.cs
- XmlNamespaceMappingCollection.cs
- categoryentry.cs
- PageThemeParser.cs
- WebPartEditVerb.cs
- BindToObject.cs
- UnicastIPAddressInformationCollection.cs
- TextTreeUndoUnit.cs
- IconBitmapDecoder.cs
- InternalRelationshipCollection.cs
- WindowPattern.cs
- AuthenticationConfig.cs
- XmlAttributeProperties.cs
- XmlSchemaIdentityConstraint.cs
- WebPartActionVerb.cs
- WindowsGraphicsCacheManager.cs