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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SortableBindingList.cs
- DefaultAsyncDataDispatcher.cs
- PersonalizablePropertyEntry.cs
- DateTimeConstantAttribute.cs
- AppDomainFactory.cs
- BamlResourceDeserializer.cs
- AspNetSynchronizationContext.cs
- ManagementInstaller.cs
- AttributeUsageAttribute.cs
- BaseCollection.cs
- ConditionChanges.cs
- DataTemplateSelector.cs
- SharedPerformanceCounter.cs
- DeploymentExceptionMapper.cs
- CustomValidator.cs
- DrawListViewSubItemEventArgs.cs
- LogSwitch.cs
- SamlEvidence.cs
- WebPartDeleteVerb.cs
- TextOptions.cs
- Image.cs
- ArcSegment.cs
- WpfPayload.cs
- VerbConverter.cs
- MinMaxParagraphWidth.cs
- EntityDataSourceView.cs
- ByteStreamMessageUtility.cs
- JpegBitmapEncoder.cs
- BitmapEffectGroup.cs
- DriveNotFoundException.cs
- ClientData.cs
- QuerySettings.cs
- FactoryMaker.cs
- MdiWindowListStrip.cs
- XDeferredAxisSource.cs
- GlyphTypeface.cs
- MethodImplAttribute.cs
- SpeechAudioFormatInfo.cs
- QuaternionRotation3D.cs
- milexports.cs
- SoapCodeExporter.cs
- ToolStripDropDownMenu.cs
- _StreamFramer.cs
- KeyConverter.cs
- ResourceSet.cs
- NumberSubstitution.cs
- CodeSubDirectoriesCollection.cs
- SafeEventHandle.cs
- TemplateBindingExpression.cs
- FontCacheLogic.cs
- QueryResults.cs
- StringToken.cs
- TransactionBridgeSection.cs
- ResourceAssociationTypeEnd.cs
- XmlUtil.cs
- ControlPager.cs
- SchemaManager.cs
- SecurityTokenProviderContainer.cs
- ByteStream.cs
- InfoCardRSACryptoProvider.cs
- GroupAggregateExpr.cs
- TypeDescriptionProvider.cs
- DbConnectionOptions.cs
- Section.cs
- SessionEndingCancelEventArgs.cs
- StdValidatorsAndConverters.cs
- UnhandledExceptionEventArgs.cs
- AssemblyBuilder.cs
- WebConfigurationHost.cs
- TableParagraph.cs
- AVElementHelper.cs
- SearchForVirtualItemEventArgs.cs
- CustomCredentialPolicy.cs
- Parameter.cs
- _IPv6Address.cs
- ClientCultureInfo.cs
- GenericIdentity.cs
- Int16KeyFrameCollection.cs
- RenderingBiasValidation.cs
- GACMembershipCondition.cs
- ExpressionBuilderCollection.cs
- UniqueIdentifierService.cs
- SqlDataSource.cs
- messageonlyhwndwrapper.cs
- Soap12ServerProtocol.cs
- Transform.cs
- Compensation.cs
- ToolStripGrip.cs
- ModifierKeysConverter.cs
- ArraySortHelper.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- Compilation.cs
- XmlSchemaImporter.cs
- ConfigurationValidatorAttribute.cs
- DocumentViewerBase.cs
- DecimalKeyFrameCollection.cs
- UserValidatedEventArgs.cs
- DashStyles.cs
- BaseValidator.cs
- UndirectedGraph.cs