Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MimeTypePropertyAttribute.cs / 1305376 / 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; ////// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VisualBrush.cs
- VirtualPathProvider.cs
- ValidationHelpers.cs
- RuleSetBrowserDialog.cs
- WorkflowServiceNamespace.cs
- DllNotFoundException.cs
- DataSourceGeneratorException.cs
- DbException.cs
- RequestQueryParser.cs
- FixedElement.cs
- PersonalizationStateInfoCollection.cs
- RectangleHotSpot.cs
- DecimalSumAggregationOperator.cs
- AsymmetricCryptoHandle.cs
- ResourceWriter.cs
- TextDecorationCollectionConverter.cs
- StrongTypingException.cs
- RecognitionEventArgs.cs
- QueryAccessibilityHelpEvent.cs
- ViewgenContext.cs
- DataTableMapping.cs
- DataBindingCollection.cs
- WebUtil.cs
- ApplicationException.cs
- MailBnfHelper.cs
- XamlTypeMapper.cs
- ResourcesBuildProvider.cs
- MetricEntry.cs
- XPathPatternBuilder.cs
- WebUtility.cs
- SystemIPv6InterfaceProperties.cs
- TextBlock.cs
- FontResourceCache.cs
- XmlArrayItemAttribute.cs
- Dynamic.cs
- PopOutPanel.cs
- TextPenaltyModule.cs
- LogicalExpr.cs
- TableCellCollection.cs
- PrintControllerWithStatusDialog.cs
- DeploymentExceptionMapper.cs
- CreateRefExpr.cs
- NonDualMessageSecurityOverHttpElement.cs
- DiscoveryMessageSequenceCD1.cs
- TypeDependencyAttribute.cs
- SelectionProviderWrapper.cs
- XpsFilter.cs
- HtmlInputImage.cs
- EncoderFallback.cs
- EventListenerClientSide.cs
- AsmxEndpointPickerExtension.cs
- HttpListenerException.cs
- GridViewRowCollection.cs
- FontClient.cs
- XmlEntityReference.cs
- SecurityPolicyVersion.cs
- Compiler.cs
- WebPartCancelEventArgs.cs
- HttpProcessUtility.cs
- BitmapSourceSafeMILHandle.cs
- CompiledQueryCacheEntry.cs
- Mappings.cs
- Latin1Encoding.cs
- Rect.cs
- SQLDouble.cs
- KeyFrames.cs
- PropertyRef.cs
- ChangeConflicts.cs
- _ListenerResponseStream.cs
- DBConnection.cs
- OneWayChannelListener.cs
- TreeNodeStyle.cs
- EntityTransaction.cs
- AlternationConverter.cs
- _FtpControlStream.cs
- XmlResolver.cs
- SchemaEntity.cs
- SystemTcpConnection.cs
- Drawing.cs
- TextureBrush.cs
- WeakReadOnlyCollection.cs
- DoubleCollectionConverter.cs
- CompilerLocalReference.cs
- ThicknessKeyFrameCollection.cs
- BaseCollection.cs
- DataGridViewColumn.cs
- DecimalStorage.cs
- DrawingAttributesDefaultValueFactory.cs
- SimpleType.cs
- ExtendedProtectionPolicyTypeConverter.cs
- TextPenaltyModule.cs
- DefaultTextStoreTextComposition.cs
- CryptoApi.cs
- Variable.cs
- Accessible.cs
- ShaperBuffers.cs
- Executor.cs
- BindingExpression.cs
- Int64Converter.cs
- XmlAnyElementAttribute.cs