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
- DataSourceXmlSerializer.cs
- DateTimeSerializationSection.cs
- wmiprovider.cs
- PeerSecurityManager.cs
- KnownTypes.cs
- ParameterBuilder.cs
- CatalogPartChrome.cs
- ExtenderProvidedPropertyAttribute.cs
- DurableOperationContext.cs
- KerberosTokenFactoryCredential.cs
- CodeTypeReferenceCollection.cs
- FormatSettings.cs
- webeventbuffer.cs
- ConfigurationPropertyAttribute.cs
- HealthMonitoringSectionHelper.cs
- SystemEvents.cs
- FormsAuthenticationUserCollection.cs
- DisableDpiAwarenessAttribute.cs
- GradientStopCollection.cs
- _SingleItemRequestCache.cs
- AnimationClockResource.cs
- RectangleGeometry.cs
- FieldInfo.cs
- EntityExpressionVisitor.cs
- TrackingAnnotationCollection.cs
- FormViewPageEventArgs.cs
- AsymmetricSignatureFormatter.cs
- DesignTimeTemplateParser.cs
- RSAPKCS1SignatureDeformatter.cs
- Stroke2.cs
- AutoGeneratedFieldProperties.cs
- ApplicationServicesHostFactory.cs
- QilLiteral.cs
- CommonDialog.cs
- XmlElement.cs
- MasterPageBuildProvider.cs
- TreeNodeEventArgs.cs
- Translator.cs
- StatusBar.cs
- Positioning.cs
- RegexFCD.cs
- ListGeneralPage.cs
- ExceptionUtil.cs
- ProfileSection.cs
- AvTraceFormat.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- DataSourceProvider.cs
- MobileContainerDesigner.cs
- SecurityManager.cs
- OleDbSchemaGuid.cs
- ImageBrush.cs
- XmlSchemaSimpleTypeRestriction.cs
- EndpointAddressProcessor.cs
- Buffer.cs
- ConstructorBuilder.cs
- RtType.cs
- TrackingRecordPreFilter.cs
- SqlStatistics.cs
- EndPoint.cs
- SecurityTokenValidationException.cs
- _UriSyntax.cs
- AttributeCollection.cs
- BamlVersionHeader.cs
- List.cs
- SelectorAutomationPeer.cs
- Assert.cs
- ParsedRoute.cs
- TextAutomationPeer.cs
- Switch.cs
- WindowsListViewItemCheckBox.cs
- DesignTimeVisibleAttribute.cs
- XmlDictionaryWriter.cs
- BitmapEncoder.cs
- ClientConfigPaths.cs
- BmpBitmapDecoder.cs
- BamlStream.cs
- VisualStyleRenderer.cs
- AccessText.cs
- Stream.cs
- StateMachineHelpers.cs
- ReadOnlyDictionary.cs
- SqlFlattener.cs
- IERequestCache.cs
- WindowsListView.cs
- ColorAnimation.cs
- SQLResource.cs
- MimeParameters.cs
- RestClientProxyHandler.cs
- DeferredReference.cs
- DetailsViewRowCollection.cs
- LinkedList.cs
- DataServices.cs
- ToolBarPanel.cs
- DSASignatureDeformatter.cs
- GeneralTransformGroup.cs
- XmlUtil.cs
- XmlValueConverter.cs
- TemplateBindingExtension.cs
- XmlNamespaceMapping.cs
- SqlUtil.cs