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
- dataobject.cs
- XmlText.cs
- SendAgentStatusRequest.cs
- ListViewDataItem.cs
- CodeAccessPermission.cs
- XmlBindingWorker.cs
- Compiler.cs
- SendKeys.cs
- TableTextElementCollectionInternal.cs
- CodeGroup.cs
- PageBreakRecord.cs
- CreatingCookieEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- SiteMap.cs
- IIS7UserPrincipal.cs
- DirectionalAction.cs
- XmlSchemaProviderAttribute.cs
- FaultFormatter.cs
- XmlSubtreeReader.cs
- ResourceExpression.cs
- GridView.cs
- GridToolTip.cs
- Figure.cs
- ISCIIEncoding.cs
- CompilerState.cs
- Int16Storage.cs
- ListViewHitTestInfo.cs
- RecommendedAsConfigurableAttribute.cs
- RangeValuePattern.cs
- FirstMatchCodeGroup.cs
- UrlPropertyAttribute.cs
- MetadataArtifactLoaderCompositeFile.cs
- NumericUpDown.cs
- MatrixValueSerializer.cs
- MsmqIntegrationOutputChannel.cs
- MonitoringDescriptionAttribute.cs
- StringPropertyBuilder.cs
- ValidateNames.cs
- AssemblyNameProxy.cs
- ReachDocumentSequenceSerializer.cs
- ValueChangedEventManager.cs
- StreamGeometry.cs
- InteropBitmapSource.cs
- BulletedList.cs
- EventDescriptor.cs
- SymLanguageVendor.cs
- DynamicPropertyHolder.cs
- DataGridViewImageCell.cs
- SuppressIldasmAttribute.cs
- ConfigPathUtility.cs
- FileIOPermission.cs
- ExpressionBuilder.cs
- NullableLongSumAggregationOperator.cs
- nulltextnavigator.cs
- SharedUtils.cs
- _NestedMultipleAsyncResult.cs
- PeerNameRegistration.cs
- RuntimeArgumentHandle.cs
- ToolStripDropDownMenu.cs
- NativeStructs.cs
- HeaderPanel.cs
- TTSVoice.cs
- NavigationService.cs
- PeerCollaboration.cs
- BuildResultCache.cs
- WebBrowserDocumentCompletedEventHandler.cs
- MenuBindingsEditorForm.cs
- SettingsPropertyValue.cs
- HelpInfo.cs
- OperationDescription.cs
- DependencyPropertyConverter.cs
- Wildcard.cs
- ViewCellSlot.cs
- VirtualPathProvider.cs
- AttributeProviderAttribute.cs
- PasswordTextNavigator.cs
- TypeConverterValueSerializer.cs
- Publisher.cs
- ObjRef.cs
- ValidationVisibilityAttribute.cs
- AutomationPatternInfo.cs
- DbMetaDataFactory.cs
- ObjectConverter.cs
- DesignerActionListCollection.cs
- BamlResourceContent.cs
- BamlTreeMap.cs
- ConfigXmlSignificantWhitespace.cs
- WorkflowTransactionOptions.cs
- EventListener.cs
- GridEntryCollection.cs
- Switch.cs
- SchemaElementLookUpTable.cs
- RedistVersionInfo.cs
- SetStateEventArgs.cs
- IndexOutOfRangeException.cs
- ButtonRenderer.cs
- DataGridViewButtonColumn.cs
- VisualCollection.cs
- unsafeIndexingFilterStream.cs
- ColumnMapProcessor.cs