Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MediaEntryAttribute.cs / 1305376 / 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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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; ////// 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 readonly 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) { Util.CheckArgumentNull(mediaMemberName, "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
- StaticExtensionConverter.cs
- SqlIdentifier.cs
- SQLByte.cs
- StdRegProviderWrapper.cs
- XamlGridLengthSerializer.cs
- WindowsAuthenticationEventArgs.cs
- EntityContainerEmitter.cs
- COM2ICategorizePropertiesHandler.cs
- CompilerInfo.cs
- ScriptHandlerFactory.cs
- ErrorLog.cs
- UpdateException.cs
- PanelStyle.cs
- SapiInterop.cs
- CalendarDay.cs
- RTLAwareMessageBox.cs
- ActivityInstance.cs
- HitTestFilterBehavior.cs
- KnownIds.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- SqlXmlStorage.cs
- TemplateColumn.cs
- CollectionChangedEventManager.cs
- ManagedIStream.cs
- PointCollectionValueSerializer.cs
- ScriptingScriptResourceHandlerSection.cs
- controlskin.cs
- ObjectItemNoOpAssemblyLoader.cs
- PaginationProgressEventArgs.cs
- AttachedProperty.cs
- QuotedPrintableStream.cs
- GridViewRow.cs
- XmlIgnoreAttribute.cs
- ObjectResult.cs
- LinkUtilities.cs
- FixedHighlight.cs
- AVElementHelper.cs
- AbstractSvcMapFileLoader.cs
- ItemsChangedEventArgs.cs
- DynamicActivity.cs
- Header.cs
- CompilationSection.cs
- Int32Animation.cs
- ShapingEngine.cs
- __TransparentProxy.cs
- DispatcherHookEventArgs.cs
- CatalogZone.cs
- Pair.cs
- FixedDocumentPaginator.cs
- RadioButtonRenderer.cs
- DeclaredTypeValidatorAttribute.cs
- TextEditorSpelling.cs
- GeometryHitTestResult.cs
- WsdlBuildProvider.cs
- ExpressionEditorSheet.cs
- ItemList.cs
- XMLSyntaxException.cs
- DataServicePagingProviderWrapper.cs
- AudioFormatConverter.cs
- DateTimeFormat.cs
- ExpressionNode.cs
- EndGetFileNameFromUserRequest.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- StylusOverProperty.cs
- LinearQuaternionKeyFrame.cs
- CommentEmitter.cs
- ELinqQueryState.cs
- _ShellExpression.cs
- EncryptedType.cs
- LocalValueEnumerator.cs
- rsa.cs
- DataServiceExpressionVisitor.cs
- CharEntityEncoderFallback.cs
- SmtpException.cs
- PropertyExpression.cs
- XmlName.cs
- WebPartTransformer.cs
- ByteFacetDescriptionElement.cs
- CheckBoxAutomationPeer.cs
- TableLayoutPanelCellPosition.cs
- NativeMethods.cs
- ClockGroup.cs
- StorageAssociationSetMapping.cs
- _KerberosClient.cs
- DataBoundControlAdapter.cs
- DataGridPagerStyle.cs
- TemplateControl.cs
- _SSPISessionCache.cs
- ProfileInfo.cs
- CompiledQueryCacheKey.cs
- TextBlock.cs
- ClientTargetSection.cs
- FileDialogPermission.cs
- XmlSchemas.cs
- DataGridViewElement.cs
- DictionaryEntry.cs
- XmlAnyElementAttributes.cs
- DebugViewWriter.cs
- DriveInfo.cs
- EncodingDataItem.cs