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
- OdbcEnvironmentHandle.cs
- ItemsControl.cs
- InternalMappingException.cs
- BackgroundWorker.cs
- Invariant.cs
- MimeWriter.cs
- SemanticResolver.cs
- DeviceFilterDictionary.cs
- Resources.Designer.cs
- TextCollapsingProperties.cs
- DropDownButton.cs
- AutoCompleteStringCollection.cs
- _Rfc2616CacheValidators.cs
- VSWCFServiceContractGenerator.cs
- XmlQualifiedName.cs
- DrawItemEvent.cs
- Query.cs
- RowCache.cs
- Sorting.cs
- DocumentViewerAutomationPeer.cs
- ThemeableAttribute.cs
- ResourceProviderFactory.cs
- cookiecontainer.cs
- ControlHelper.cs
- ErrorStyle.cs
- TextSerializer.cs
- CodeStatement.cs
- XamlRtfConverter.cs
- HttpRawResponse.cs
- DelegateBodyWriter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- MediaContextNotificationWindow.cs
- CopyNodeSetAction.cs
- Avt.cs
- SemanticBasicElement.cs
- ContainerVisual.cs
- X509UI.cs
- MsmqIntegrationElement.cs
- AutoGeneratedFieldProperties.cs
- TrustManagerMoreInformation.cs
- ConstraintConverter.cs
- StyleCollection.cs
- EndPoint.cs
- ManagementEventArgs.cs
- ContentPlaceHolder.cs
- ProviderException.cs
- BufferedWebEventProvider.cs
- FixedDocumentPaginator.cs
- SQLDateTimeStorage.cs
- ByteRangeDownloader.cs
- DesignerTransactionCloseEvent.cs
- ImageProxy.cs
- HijriCalendar.cs
- COM2ExtendedUITypeEditor.cs
- TabRenderer.cs
- ResourceManager.cs
- XmlSchemas.cs
- PropertyChange.cs
- ContextStack.cs
- WindowsListViewSubItem.cs
- DataGridViewTopLeftHeaderCell.cs
- WindowsFormsLinkLabel.cs
- SmtpException.cs
- GlyphsSerializer.cs
- SafeFileMapViewHandle.cs
- PropertyMappingExceptionEventArgs.cs
- RegexWorker.cs
- XmlHierarchicalEnumerable.cs
- FixedSOMGroup.cs
- SystemPens.cs
- TreeIterators.cs
- ProtocolElementCollection.cs
- AdornerHitTestResult.cs
- OlePropertyStructs.cs
- FontUnit.cs
- RegularExpressionValidator.cs
- Coordinator.cs
- NodeFunctions.cs
- TraceSection.cs
- RegexMatchCollection.cs
- SelectionPattern.cs
- ArgumentDesigner.xaml.cs
- LocalizeDesigner.cs
- RegexInterpreter.cs
- ActivityWithResultConverter.cs
- ModelUIElement3D.cs
- InvalidDataException.cs
- ReturnEventArgs.cs
- EventHandlerList.cs
- HtmlWindowCollection.cs
- ComboBoxItem.cs
- TranslateTransform3D.cs
- IconConverter.cs
- PropertyTabChangedEvent.cs
- OracleTransaction.cs
- ClientBuildManagerCallback.cs
- Root.cs
- GlobalizationAssembly.cs
- Lease.cs
- PersonalizationAdministration.cs