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
- LogExtentCollection.cs
- ConfigPathUtility.cs
- XmlElementCollection.cs
- TreePrinter.cs
- WebConfigManager.cs
- _RequestCacheProtocol.cs
- TextTreeFixupNode.cs
- DataGridViewComboBoxColumn.cs
- SerializationObjectManager.cs
- ModelVisual3D.cs
- RenderTargetBitmap.cs
- ProcessModule.cs
- InputLanguageProfileNotifySink.cs
- CharConverter.cs
- OracleCommandSet.cs
- AssemblyBuilder.cs
- DashStyle.cs
- CompositeScriptReference.cs
- XmlName.cs
- DataFormats.cs
- DialogWindow.cs
- ConfigViewGenerator.cs
- DictationGrammar.cs
- jithelpers.cs
- Int64.cs
- GraphicsContext.cs
- SqlDataSource.cs
- DocumentViewerBaseAutomationPeer.cs
- CurrentChangingEventArgs.cs
- AtlasWeb.Designer.cs
- SafeSecurityHandles.cs
- VectorAnimationBase.cs
- Block.cs
- DetailsViewModeEventArgs.cs
- SchemaElementLookUpTable.cs
- PrimitiveDataContract.cs
- DragAssistanceManager.cs
- UInt32.cs
- WindowsPrincipal.cs
- SetterBase.cs
- ConfigurationSchemaErrors.cs
- TraceXPathNavigator.cs
- JsonReader.cs
- regiisutil.cs
- precedingquery.cs
- XmlSchemaAnnotated.cs
- TimeZoneNotFoundException.cs
- ChtmlTextWriter.cs
- TokenBasedSet.cs
- TagMapCollection.cs
- MasterPageBuildProvider.cs
- TaiwanCalendar.cs
- GeneralTransform.cs
- DefaultPropertyAttribute.cs
- SQLUtility.cs
- Dispatcher.cs
- WindowsButton.cs
- DataGridCaption.cs
- RegistryExceptionHelper.cs
- OleDbCommandBuilder.cs
- PointF.cs
- ItemsPanelTemplate.cs
- LambdaCompiler.Lambda.cs
- CatalogZoneDesigner.cs
- KoreanLunisolarCalendar.cs
- ImageFormatConverter.cs
- DockingAttribute.cs
- IriParsingElement.cs
- IteratorFilter.cs
- AssemblyAssociatedContentFileAttribute.cs
- SecurityTokenRequirement.cs
- OleDbConnectionFactory.cs
- FrameworkElementFactoryMarkupObject.cs
- CodeGenerationManager.cs
- ManifestSignedXml.cs
- KnownAssemblyEntry.cs
- DataRelationPropertyDescriptor.cs
- TextServicesManager.cs
- TextEditorCopyPaste.cs
- ObjectStateFormatter.cs
- IndexedString.cs
- ReferencedType.cs
- PublisherIdentityPermission.cs
- TextBoxBase.cs
- CultureSpecificStringDictionary.cs
- XmlSchemaSimpleTypeUnion.cs
- UnauthorizedWebPart.cs
- OleCmdHelper.cs
- VisualTreeUtils.cs
- SqlNodeAnnotations.cs
- EncodingInfo.cs
- GeneralTransform3DTo2D.cs
- QilCloneVisitor.cs
- DateTimeOffset.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SqlLiftIndependentRowExpressions.cs
- HttpCookiesSection.cs
- HostUtils.cs
- DataGridViewComboBoxColumn.cs
- SelectionChangedEventArgs.cs