Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MimeTypePropertyAttribute.cs / 1 / MimeTypePropertyAttribute.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 attribute indicates another property in the same type that /// contains the MIME type that should be used for the data contained /// in the property this attribute is applied to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class MimeTypePropertyAttribute : Attribute { ///The name of the property that contains the data private readonly string dataPropertyName; ///The name of the property that contains the mime type private readonly string mimeTypePropertyName; ////// Creates a new instance of this attribute pointing to a particular /// property to be used for the MIME type /// /// Name of the property holding the data /// Name of the property holding the MIME type public MimeTypePropertyAttribute(string dataPropertyName, string mimeTypePropertyName) { this.dataPropertyName = dataPropertyName; this.mimeTypePropertyName = mimeTypePropertyName; } ///The name of the property that contains the data. public string DataPropertyName { get { return this.dataPropertyName; } } ///The name of the property that contains the mime type public string MimeTypePropertyName { get { return this.mimeTypePropertyName; } } } } // 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 attribute indicates another property in the same type that /// contains the MIME type that should be used for the data contained /// in the property this attribute is applied to. /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)] public sealed class MimeTypePropertyAttribute : Attribute { ///The name of the property that contains the data private readonly string dataPropertyName; ///The name of the property that contains the mime type private readonly string mimeTypePropertyName; ////// Creates a new instance of this attribute pointing to a particular /// property to be used for the MIME type /// /// Name of the property holding the data /// Name of the property holding the MIME type public MimeTypePropertyAttribute(string dataPropertyName, string mimeTypePropertyName) { this.dataPropertyName = dataPropertyName; this.mimeTypePropertyName = mimeTypePropertyName; } ///The name of the property that contains the data. public string DataPropertyName { get { return this.dataPropertyName; } } ///The name of the property that contains the mime type public string MimeTypePropertyName { get { return this.mimeTypePropertyName; } } } } // 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
- SchemaMapping.cs
- TableDetailsCollection.cs
- TableCell.cs
- Queue.cs
- CopyNodeSetAction.cs
- WebPartMovingEventArgs.cs
- XmlEnumAttribute.cs
- VersionedStreamOwner.cs
- GridEntryCollection.cs
- DistributedTransactionPermission.cs
- OdbcRowUpdatingEvent.cs
- ColumnWidthChangingEvent.cs
- LinearQuaternionKeyFrame.cs
- COAUTHIDENTITY.cs
- Debugger.cs
- SQLInt32Storage.cs
- DeclaredTypeValidator.cs
- InputLanguageSource.cs
- ElementFactory.cs
- WebPartCancelEventArgs.cs
- SubclassTypeValidator.cs
- ResourcesGenerator.cs
- ReadWriteObjectLock.cs
- XPathBuilder.cs
- SingleObjectCollection.cs
- ProcessHostMapPath.cs
- CellNormalizer.cs
- basenumberconverter.cs
- SQLResource.cs
- Object.cs
- DataGridColumnCollectionEditor.cs
- Transform.cs
- SendMailErrorEventArgs.cs
- XmlSchemaGroupRef.cs
- UnsafeCollabNativeMethods.cs
- Set.cs
- MaskPropertyEditor.cs
- StyleSheetComponentEditor.cs
- UnsafeNativeMethodsCLR.cs
- PageAdapter.cs
- CalendarDay.cs
- Automation.cs
- Stroke.cs
- ResourceIDHelper.cs
- WebPartTransformerCollection.cs
- TransactionManager.cs
- TextBox.cs
- ImageCodecInfo.cs
- PageEventArgs.cs
- ByteRangeDownloader.cs
- DataListItemCollection.cs
- SharedConnectionWorkflowTransactionService.cs
- SamlEvidence.cs
- HttpCookie.cs
- MulticastOption.cs
- TextRangeAdaptor.cs
- safex509handles.cs
- ForceCopyBuildProvider.cs
- RewritingValidator.cs
- FilterableAttribute.cs
- WriteLine.cs
- EdmItemError.cs
- Document.cs
- DataServiceRequestException.cs
- CategoryAttribute.cs
- NamedPipeHostedTransportConfiguration.cs
- DelayedRegex.cs
- WebPartConnectionsCancelEventArgs.cs
- TargetControlTypeCache.cs
- PerformanceCounterPermissionEntry.cs
- OperatingSystem.cs
- QueuePropertyVariants.cs
- RadioButton.cs
- IxmlLineInfo.cs
- Relationship.cs
- StringDictionary.cs
- SliderAutomationPeer.cs
- ExtensionSimplifierMarkupObject.cs
- ListViewDataItem.cs
- ObjectViewQueryResultData.cs
- TreeViewCancelEvent.cs
- DataMisalignedException.cs
- XmlILOptimizerVisitor.cs
- UnsafeNativeMethods.cs
- DocumentXPathNavigator.cs
- DesignerProperties.cs
- ActivityBuilderHelper.cs
- WinEventHandler.cs
- HtmlElement.cs
- AlternateViewCollection.cs
- CfgSemanticTag.cs
- Assert.cs
- StreamUpgradeBindingElement.cs
- ExternalException.cs
- ToolStripDesignerAvailabilityAttribute.cs
- IPPacketInformation.cs
- FileDialogCustomPlace.cs
- ReaderWriterLock.cs
- StyleBamlRecordReader.cs
- StringValidator.cs