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
- ListViewSelectEventArgs.cs
- mansign.cs
- HttpSessionStateWrapper.cs
- remotingproxy.cs
- SubMenuStyle.cs
- Debugger.cs
- XPathDocumentIterator.cs
- XmlAttributeProperties.cs
- LinqDataSource.cs
- Model3DGroup.cs
- ListQueryResults.cs
- WindowsAuthenticationModule.cs
- OutputCacheSection.cs
- DescendentsWalkerBase.cs
- backend.cs
- ProcessInfo.cs
- CategoryEditor.cs
- RoleService.cs
- GrammarBuilderPhrase.cs
- StyleXamlParser.cs
- MenuCommands.cs
- EditorZone.cs
- XmlSchemaParticle.cs
- WebPartDescriptionCollection.cs
- SettingsProviderCollection.cs
- ControlAdapter.cs
- AssertValidation.cs
- SoapHeaderAttribute.cs
- PathSegment.cs
- dataobject.cs
- NativeRightsManagementAPIsStructures.cs
- AccessDataSource.cs
- CallContext.cs
- ConfigurationSectionCollection.cs
- XmlSchemaObject.cs
- ClientRoleProvider.cs
- ElementHost.cs
- BamlResourceDeserializer.cs
- TypeConverterAttribute.cs
- ToolboxCategory.cs
- XsdValidatingReader.cs
- WindowInteropHelper.cs
- InvalidateEvent.cs
- ThemeDictionaryExtension.cs
- TransportChannelFactory.cs
- Button.cs
- RestClientProxyHandler.cs
- SessionEndingEventArgs.cs
- ExpressionBindingCollection.cs
- GridSplitterAutomationPeer.cs
- GenericQueueSurrogate.cs
- FieldNameLookup.cs
- HttpProfileGroupBase.cs
- TrustSection.cs
- SourceSwitch.cs
- ConvertTextFrag.cs
- PointLightBase.cs
- CompilationUtil.cs
- CodeValidator.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- StylusPlugin.cs
- SpellerInterop.cs
- MILUtilities.cs
- GroupBoxAutomationPeer.cs
- QilXmlWriter.cs
- ConfigXmlElement.cs
- Solver.cs
- NamedPipeProcessProtocolHandler.cs
- TailCallAnalyzer.cs
- Typeface.cs
- ClientSettings.cs
- SerialPinChanges.cs
- CounterSetInstance.cs
- SystemIPAddressInformation.cs
- SecurityDescriptor.cs
- UndoEngine.cs
- __Filters.cs
- CodeTypeReferenceSerializer.cs
- ListViewItemEventArgs.cs
- TiffBitmapEncoder.cs
- XPathNodeIterator.cs
- SqlUserDefinedTypeAttribute.cs
- DebugView.cs
- CompensatableTransactionScopeActivityDesigner.cs
- Queue.cs
- RelationshipWrapper.cs
- CompiledQueryCacheKey.cs
- ApplicationInfo.cs
- TTSEngineProxy.cs
- Mapping.cs
- GlyphCache.cs
- CodeParameterDeclarationExpression.cs
- CapabilitiesPattern.cs
- Mappings.cs
- WindowsMenu.cs
- ApplicationSecurityManager.cs
- DefaultProxySection.cs
- RTLAwareMessageBox.cs
- DnsPermission.cs
- Ipv6Element.cs