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
- Exceptions.cs
- CodeTypeReference.cs
- XmlWrappingWriter.cs
- HWStack.cs
- MouseDevice.cs
- TextEditorLists.cs
- DataGridViewCellValidatingEventArgs.cs
- ScrollBar.cs
- GradientSpreadMethodValidation.cs
- ToolStripItemCollection.cs
- ECDiffieHellmanPublicKey.cs
- NullableBoolConverter.cs
- SystemGatewayIPAddressInformation.cs
- ViewManager.cs
- SoapReflector.cs
- NumberSubstitution.cs
- AutomationPropertyInfo.cs
- DataGridAddNewRow.cs
- SymbolMethod.cs
- OutputCacheProfileCollection.cs
- IndexedString.cs
- DataGridCheckBoxColumn.cs
- PersonalizationProvider.cs
- AppDomainManager.cs
- ELinqQueryState.cs
- AuthenticationManager.cs
- DesignConnection.cs
- DynamicExpression.cs
- DependencyPropertyChangedEventArgs.cs
- Unit.cs
- HttpException.cs
- AnimationClock.cs
- CodeComment.cs
- WebScriptMetadataMessageEncoderFactory.cs
- DataGridViewAccessibleObject.cs
- EditorPart.cs
- ConfigXmlComment.cs
- ReadingWritingEntityEventArgs.cs
- DbgUtil.cs
- MutableAssemblyCacheEntry.cs
- DataPager.cs
- CodeAccessSecurityEngine.cs
- AspNetHostingPermission.cs
- AtomParser.cs
- HtmlTextArea.cs
- ProviderConnectionPointCollection.cs
- ObjectItemCachedAssemblyLoader.cs
- SafeMarshalContext.cs
- ConcurrentQueue.cs
- OraclePermissionAttribute.cs
- UIElement.cs
- ChtmlTextWriter.cs
- Quad.cs
- DispatchWrapper.cs
- Console.cs
- BamlRecordWriter.cs
- ConfigXmlSignificantWhitespace.cs
- ScriptingAuthenticationServiceSection.cs
- ByteKeyFrameCollection.cs
- BasePropertyDescriptor.cs
- ServiceProviders.cs
- Visual3D.cs
- Rotation3D.cs
- UpdateManifestForBrowserApplication.cs
- ImageListUtils.cs
- lengthconverter.cs
- DateBoldEvent.cs
- MailMessage.cs
- OracleNumber.cs
- TransactionOptions.cs
- DictionaryEntry.cs
- Region.cs
- RemotingAttributes.cs
- VideoDrawing.cs
- PageTextBox.cs
- SizeAnimationClockResource.cs
- WebZoneDesigner.cs
- EmbossBitmapEffect.cs
- TextAutomationPeer.cs
- CompilationUtil.cs
- SimpleHandlerBuildProvider.cs
- WindowPattern.cs
- SynchronizedChannelCollection.cs
- Internal.cs
- compensatingcollection.cs
- ForwardPositionQuery.cs
- Mapping.cs
- wgx_commands.cs
- GenericIdentity.cs
- ComboBoxAutomationPeer.cs
- CellConstant.cs
- ScopedKnownTypes.cs
- ConfigPathUtility.cs
- TrustManager.cs
- CacheHelper.cs
- Translator.cs
- EmptyEnumerable.cs
- ConfigXmlCDataSection.cs
- ProcessModelSection.cs
- XmlSchemaComplexContentExtension.cs