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
- PublishLicense.cs
- DirectoryNotFoundException.cs
- Quaternion.cs
- InvokePattern.cs
- BrushProxy.cs
- StaticSiteMapProvider.cs
- EntityAdapter.cs
- ping.cs
- ListenDesigner.cs
- DesignerMetadata.cs
- SmtpAuthenticationManager.cs
- SoapSchemaExporter.cs
- BufferModeSettings.cs
- _LoggingObject.cs
- BaseParagraph.cs
- SwitchExpression.cs
- ListenerSessionConnectionReader.cs
- DiscreteKeyFrames.cs
- xsdvalidator.cs
- SqlBulkCopy.cs
- DateTimeConverter.cs
- DelayedRegex.cs
- EnumBuilder.cs
- WindowsSecurityTokenAuthenticator.cs
- EventLogTraceListener.cs
- ToolStripPanelSelectionGlyph.cs
- ResourcesBuildProvider.cs
- DataGridViewRowEventArgs.cs
- ModelUIElement3D.cs
- Geometry.cs
- FormViewUpdatedEventArgs.cs
- Timer.cs
- UnhandledExceptionEventArgs.cs
- X509SecurityToken.cs
- SmtpNetworkElement.cs
- HttpRawResponse.cs
- OleDbError.cs
- WindowShowOrOpenTracker.cs
- ZipIOExtraFieldElement.cs
- HuffmanTree.cs
- initElementDictionary.cs
- CompletedAsyncResult.cs
- ToolStripDropDownButton.cs
- BStrWrapper.cs
- NetworkInformationPermission.cs
- WebPartZoneBase.cs
- InputBindingCollection.cs
- CFStream.cs
- WebFormDesignerActionService.cs
- TypeSystem.cs
- SerializationEventsCache.cs
- OracleColumn.cs
- MouseActionValueSerializer.cs
- InputScopeManager.cs
- XmlWellformedWriter.cs
- DataKeyCollection.cs
- WebPartPersonalization.cs
- WebPartEditorCancelVerb.cs
- TextSimpleMarkerProperties.cs
- OdbcConnection.cs
- Int16Animation.cs
- Pkcs9Attribute.cs
- Schema.cs
- SignatureDescription.cs
- BitmapScalingModeValidation.cs
- EventSinkActivityDesigner.cs
- BindingBase.cs
- CodeIdentifiers.cs
- RsaSecurityKey.cs
- BamlMapTable.cs
- ParseChildrenAsPropertiesAttribute.cs
- HttpPostedFile.cs
- ComboBox.cs
- QueryAsyncResult.cs
- DataContractSerializerSection.cs
- ResourceCategoryAttribute.cs
- StringSource.cs
- NavigationPropertySingletonExpression.cs
- PassportAuthenticationEventArgs.cs
- TextServicesContext.cs
- NumberFormatter.cs
- RelatedPropertyManager.cs
- SqlDuplicator.cs
- EdmProviderManifest.cs
- SvcMapFileSerializer.cs
- LinearGradientBrush.cs
- SmtpClient.cs
- SrgsItemList.cs
- WindowCollection.cs
- PersonalizationStateInfo.cs
- RolePrincipal.cs
- MetadataSource.cs
- TextEndOfSegment.cs
- EnumMember.cs
- dataprotectionpermission.cs
- AggregatePushdown.cs
- ObjectParameterCollection.cs
- LineGeometry.cs
- StructuralCache.cs
- XamlSerializer.cs