Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MimeTypePropertyAttribute.cs / 1305376 / 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; ////// 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; ////// 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
- CacheAxisQuery.cs
- QueryContinueDragEvent.cs
- Border.cs
- FormsAuthenticationUser.cs
- ActiveXContainer.cs
- TextBoxDesigner.cs
- DataGridItemCollection.cs
- Point.cs
- CodeSubDirectoriesCollection.cs
- RowToFieldTransformer.cs
- TextTreeTextNode.cs
- DropShadowBitmapEffect.cs
- PointAnimationBase.cs
- XmlSchemaFacet.cs
- SplineKeyFrames.cs
- PriorityQueue.cs
- OleTxTransaction.cs
- AesCryptoServiceProvider.cs
- TextChangedEventArgs.cs
- HostingEnvironmentWrapper.cs
- AlphabeticalEnumConverter.cs
- DBCSCodePageEncoding.cs
- CheckedPointers.cs
- TagMapInfo.cs
- TableLayoutPanelCellPosition.cs
- ButtonColumn.cs
- EntityDesignerUtils.cs
- RegionData.cs
- ReadOnlyKeyedCollection.cs
- TransformCryptoHandle.cs
- EncodingNLS.cs
- Error.cs
- StringUtil.cs
- TextPointer.cs
- SafePointer.cs
- NetTcpSecurity.cs
- Activator.cs
- AsyncSerializedWorker.cs
- GroupBox.cs
- CompModHelpers.cs
- Helpers.cs
- DataGridViewCheckBoxCell.cs
- HttpCachePolicy.cs
- FormClosedEvent.cs
- InvalidFilterCriteriaException.cs
- HttpProfileBase.cs
- XmlReflectionMember.cs
- iisPickupDirectory.cs
- PageStatePersister.cs
- PageStatePersister.cs
- BasicHttpMessageSecurityElement.cs
- NativeMethods.cs
- TrackingDataItem.cs
- Light.cs
- Serializer.cs
- _ContextAwareResult.cs
- ScriptDescriptor.cs
- RelationalExpressions.cs
- ConnectAlgorithms.cs
- DiagnosticsConfigurationHandler.cs
- DataFieldCollectionEditor.cs
- StateMachineWorkflowInstance.cs
- CharAnimationBase.cs
- SimpleExpression.cs
- TextDecorations.cs
- SQLUtility.cs
- PreviewControlDesigner.cs
- OptionUsage.cs
- ProviderUtil.cs
- ProtocolsSection.cs
- DeviceOverridableAttribute.cs
- FixedTextContainer.cs
- DependencyObject.cs
- IndexOutOfRangeException.cs
- SortQuery.cs
- HttpModuleCollection.cs
- ColorMatrix.cs
- ViewStateChangedEventArgs.cs
- AttributeExtensions.cs
- ExtendedPropertyInfo.cs
- MemberInfoSerializationHolder.cs
- UdpAnnouncementEndpoint.cs
- PropertyInformationCollection.cs
- AssemblyInfo.cs
- ActivityDelegate.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Schedule.cs
- CompleteWizardStep.cs
- FileCodeGroup.cs
- LicenseContext.cs
- RefreshPropertiesAttribute.cs
- BrowserDefinition.cs
- WebPartsPersonalization.cs
- DecryptRequest.cs
- DataSourceControlBuilder.cs
- DeclaredTypeValidatorAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- HtmlFormParameterWriter.cs
- ListViewCommandEventArgs.cs
- ListViewDesigner.cs