Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- ImmutableObjectAttribute.cs
- ToolTipService.cs
- ExceptionAggregator.cs
- CodeIndexerExpression.cs
- AssemblyInfo.cs
- ScriptMethodAttribute.cs
- NotificationContext.cs
- CrossAppDomainChannel.cs
- FixedDSBuilder.cs
- InfoCardBaseException.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TextWriterTraceListener.cs
- ScaleTransform3D.cs
- FlowDocument.cs
- SoapMessage.cs
- Delegate.cs
- WebRequest.cs
- RuntimeEnvironment.cs
- HotCommands.cs
- AutomationIdentifierGuids.cs
- AppSettingsSection.cs
- ReadOnlyCollectionBase.cs
- documentation.cs
- TabItemWrapperAutomationPeer.cs
- AttributeQuery.cs
- smtppermission.cs
- IteratorFilter.cs
- DataSvcMapFile.cs
- DataRecord.cs
- RegexGroupCollection.cs
- ChangeDirector.cs
- RequestResponse.cs
- DoubleAnimationUsingKeyFrames.cs
- Merger.cs
- ScalarOps.cs
- InstancePersistenceCommand.cs
- _DisconnectOverlappedAsyncResult.cs
- RSACryptoServiceProvider.cs
- FlatButtonAppearance.cs
- HtmlProps.cs
- TcpAppDomainProtocolHandler.cs
- CodeRegionDirective.cs
- BinaryObjectReader.cs
- VBCodeProvider.cs
- Tokenizer.cs
- WSFederationHttpBindingElement.cs
- ComplexTypeEmitter.cs
- HttpHandlerActionCollection.cs
- DataListItemEventArgs.cs
- BypassElement.cs
- EnumerableCollectionView.cs
- BitmapMetadata.cs
- PowerModeChangedEventArgs.cs
- Keyboard.cs
- IgnoreSection.cs
- QilChoice.cs
- DesignConnectionCollection.cs
- SqlTypesSchemaImporter.cs
- CompressionTransform.cs
- MimeWriter.cs
- SqlInternalConnectionTds.cs
- MenuItem.cs
- RowVisual.cs
- SAPICategories.cs
- DbProviderFactory.cs
- HashMembershipCondition.cs
- StylusButtonCollection.cs
- ProfileSection.cs
- ToolStripProgressBar.cs
- ConfigXmlSignificantWhitespace.cs
- MasterPageCodeDomTreeGenerator.cs
- LoginView.cs
- XmlAttributeAttribute.cs
- TimeSpanParse.cs
- LinkDescriptor.cs
- FrugalList.cs
- DesignerAutoFormatCollection.cs
- PropertyOverridesDialog.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- TdsParserStateObject.cs
- ColorConverter.cs
- BaseDataList.cs
- UidManager.cs
- GridView.cs
- UiaCoreApi.cs
- querybuilder.cs
- MatrixAnimationBase.cs
- DigestTraceRecordHelper.cs
- SamlSubjectStatement.cs
- ProcessHost.cs
- SchemaInfo.cs
- PeerService.cs
- Help.cs
- SqlConnection.cs
- SqlDataSourceEnumerator.cs
- DoWorkEventArgs.cs
- StringPropertyBuilder.cs
- RadioButton.cs
- BinaryParser.cs
- RangeBaseAutomationPeer.cs