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
- webproxy.cs
- PrimitiveXmlSerializers.cs
- ReachDocumentReferenceCollectionSerializer.cs
- OleDbConnection.cs
- FillRuleValidation.cs
- SBCSCodePageEncoding.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- base64Transforms.cs
- SiteMapNode.cs
- TemplateLookupAction.cs
- PeerCollaborationPermission.cs
- XPathExpr.cs
- DocumentCollection.cs
- NetStream.cs
- DeadCharTextComposition.cs
- ToolBar.cs
- PropertyDescriptors.cs
- SctClaimDictionary.cs
- DataBindEngine.cs
- _SslSessionsCache.cs
- PolicyUnit.cs
- DBSchemaRow.cs
- FilterableAttribute.cs
- ConfigurationException.cs
- hebrewshape.cs
- GlyphingCache.cs
- ClientConfigurationSystem.cs
- ClientApiGenerator.cs
- SmtpException.cs
- CodeMethodInvokeExpression.cs
- SoapMessage.cs
- ZipIOLocalFileDataDescriptor.cs
- _IPv6Address.cs
- precedingsibling.cs
- UiaCoreApi.cs
- LinqDataSourceHelper.cs
- URLString.cs
- XMLUtil.cs
- ConnectionPointConverter.cs
- HtmlTernaryTree.cs
- ServiceBuildProvider.cs
- VectorKeyFrameCollection.cs
- MgmtResManager.cs
- StringPropertyBuilder.cs
- ExternalCalls.cs
- CompositeDataBoundControl.cs
- DirectoryLocalQuery.cs
- PenLineJoinValidation.cs
- SemanticKeyElement.cs
- ReliableMessagingVersionConverter.cs
- RoleService.cs
- ImpersonationContext.cs
- InternalCache.cs
- CodeArgumentReferenceExpression.cs
- TheQuery.cs
- EncoderBestFitFallback.cs
- VirtualDirectoryMapping.cs
- ResourceDictionary.cs
- PermissionAttributes.cs
- PermissionSetTriple.cs
- HwndHostAutomationPeer.cs
- ConnectionConsumerAttribute.cs
- DataGridViewRowPostPaintEventArgs.cs
- LoginView.cs
- VirtualPathProvider.cs
- Scene3D.cs
- WorkflowItemsPresenter.cs
- HostingPreferredMapPath.cs
- COM2ICategorizePropertiesHandler.cs
- BufferModesCollection.cs
- AxHost.cs
- LinkDesigner.cs
- DeploymentSection.cs
- LongTypeConverter.cs
- SmiRecordBuffer.cs
- AvtEvent.cs
- EmptyStringExpandableObjectConverter.cs
- DataGridViewSelectedRowCollection.cs
- CoreSwitches.cs
- StreamSecurityUpgradeProvider.cs
- ReadOnlyNameValueCollection.cs
- CachedTypeface.cs
- QilStrConcatenator.cs
- SeverityFilter.cs
- ParameterBuilder.cs
- NullRuntimeConfig.cs
- DescendantQuery.cs
- ListViewDeleteEventArgs.cs
- SqlProfileProvider.cs
- VirtualDirectoryMappingCollection.cs
- FontUnitConverter.cs
- State.cs
- AtomPub10CategoriesDocumentFormatter.cs
- DocumentGridPage.cs
- Icon.cs
- MsmqChannelFactoryBase.cs
- SymDocumentType.cs
- WindowPattern.cs
- SplitContainerDesigner.cs
- SizeF.cs