Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- IRCollection.cs
- ToolStripPanelCell.cs
- ListViewItem.cs
- EventWaitHandle.cs
- Cell.cs
- TransformerConfigurationWizardBase.cs
- MediaElement.cs
- MobileFormsAuthentication.cs
- contentDescriptor.cs
- MultiSelector.cs
- AudioException.cs
- PublisherIdentityPermission.cs
- PropertyMap.cs
- XmlUtilWriter.cs
- DiagnosticStrings.cs
- MouseCaptureWithinProperty.cs
- FactoryId.cs
- Vector3DAnimation.cs
- MetadataItem.cs
- UnhandledExceptionEventArgs.cs
- ScopeElement.cs
- Properties.cs
- SqlTopReducer.cs
- DiscoveryClientRequestChannel.cs
- ObsoleteAttribute.cs
- SMSvcHost.cs
- ComponentEditorPage.cs
- SqlGatherProducedAliases.cs
- HttpModuleActionCollection.cs
- StreamSecurityUpgradeProvider.cs
- TextSchema.cs
- XmlWrappingReader.cs
- XsdBuildProvider.cs
- DataTableReader.cs
- Listbox.cs
- HttpWriter.cs
- HMAC.cs
- CodeBinaryOperatorExpression.cs
- TerminatorSinks.cs
- SafeArrayRankMismatchException.cs
- HideDisabledControlAdapter.cs
- OrderingInfo.cs
- TemplateXamlTreeBuilder.cs
- ExpandCollapsePattern.cs
- OperatorExpressions.cs
- ChangeTracker.cs
- RectValueSerializer.cs
- IfElseDesigner.xaml.cs
- XmlUnspecifiedAttribute.cs
- Walker.cs
- DecoratedNameAttribute.cs
- SecurityTokenAuthenticator.cs
- StatusBar.cs
- MenuTracker.cs
- shaper.cs
- CfgParser.cs
- ValidationHelper.cs
- View.cs
- AutomationElementCollection.cs
- MethodImplAttribute.cs
- ComponentCodeDomSerializer.cs
- SubMenuStyle.cs
- ExpandCollapsePattern.cs
- Duration.cs
- ObjectKeyFrameCollection.cs
- ByteRangeDownloader.cs
- ScriptingJsonSerializationSection.cs
- MimeObjectFactory.cs
- DataSourceView.cs
- ChineseLunisolarCalendar.cs
- NeutralResourcesLanguageAttribute.cs
- DiffuseMaterial.cs
- Vector.cs
- ListView.cs
- CodeAttributeArgument.cs
- UriSectionReader.cs
- ProxyWebPartManager.cs
- Brush.cs
- DataReaderContainer.cs
- ActivityExecutionContext.cs
- TargetPerspective.cs
- Byte.cs
- WebZoneDesigner.cs
- DataGridTable.cs
- TimeSpanConverter.cs
- CollectionView.cs
- ApplicationId.cs
- ListDictionary.cs
- XamlToRtfParser.cs
- GeneralTransform3DGroup.cs
- DataGridAutoFormat.cs
- BinaryParser.cs
- ConsoleKeyInfo.cs
- ValueChangedEventManager.cs
- PointLightBase.cs
- SiteMapNodeItem.cs
- AsyncPostBackErrorEventArgs.cs
- EventRoute.cs
- HandledEventArgs.cs
- XmlSchemaGroupRef.cs