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
- SamlConditions.cs
- MessageQueuePermission.cs
- TextEffectCollection.cs
- ExpanderAutomationPeer.cs
- BindingList.cs
- _DomainName.cs
- ProcessHostFactoryHelper.cs
- UnhandledExceptionEventArgs.cs
- WorkflowMarkupSerializationProvider.cs
- DoubleStorage.cs
- XsdDataContractExporter.cs
- PolygonHotSpot.cs
- IOException.cs
- FunctionDetailsReader.cs
- DataViewListener.cs
- OutputCacheProfile.cs
- XmlPreloadedResolver.cs
- FontInfo.cs
- ListenerChannelContext.cs
- Currency.cs
- MetadataFile.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TTSEvent.cs
- PlainXmlSerializer.cs
- DescendantQuery.cs
- RewritingSimplifier.cs
- IISUnsafeMethods.cs
- Publisher.cs
- DesignerActionVerbList.cs
- ManualResetEvent.cs
- IdnElement.cs
- Encoder.cs
- SmiTypedGetterSetter.cs
- Int32RectConverter.cs
- SiteMap.cs
- BamlLocalizableResourceKey.cs
- CopyOfAction.cs
- ProjectedWrapper.cs
- PackageRelationship.cs
- InstanceNormalEvent.cs
- XmlnsDictionary.cs
- PageStatePersister.cs
- OrderByQueryOptionExpression.cs
- QilPatternVisitor.cs
- HyperlinkAutomationPeer.cs
- SkinBuilder.cs
- TdsParserStaticMethods.cs
- ThreadWorkerController.cs
- Win32.cs
- CommandConverter.cs
- UrlMappingsSection.cs
- XsltException.cs
- RawContentTypeMapper.cs
- ClientFormsAuthenticationCredentials.cs
- EnumValAlphaComparer.cs
- KeyGestureConverter.cs
- DirtyTextRange.cs
- XmlNamespaceMappingCollection.cs
- objectquery_tresulttype.cs
- XmlElementAttributes.cs
- AssemblyInfo.cs
- CompiledELinqQueryState.cs
- DataGridItemCollection.cs
- DragDrop.cs
- TrackingValidationObjectDictionary.cs
- TableCellCollection.cs
- RegistryKey.cs
- ClientApiGenerator.cs
- Config.cs
- SQLBinaryStorage.cs
- CodeConditionStatement.cs
- DurableInstanceManager.cs
- DelegatingHeader.cs
- cookieexception.cs
- TextRange.cs
- XmlSchemaImporter.cs
- DataIdProcessor.cs
- HtmlGenericControl.cs
- RowVisual.cs
- ControlPropertyNameConverter.cs
- HtmlTernaryTree.cs
- OleDbParameterCollection.cs
- DataListItemCollection.cs
- UnionExpr.cs
- StringUtil.cs
- MissingMemberException.cs
- HtmlContainerControl.cs
- StringBuilder.cs
- UIElementPropertyUndoUnit.cs
- XhtmlBasicPanelAdapter.cs
- ListSourceHelper.cs
- AxWrapperGen.cs
- RegexRunner.cs
- ReadOnlyHierarchicalDataSourceView.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DiagnosticTrace.cs
- WebPartCancelEventArgs.cs
- DependencyObject.cs
- DateTimeOffset.cs
- DynamicPropertyHolder.cs