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
- ToolboxDataAttribute.cs
- odbcmetadatafactory.cs
- FormatterServicesNoSerializableCheck.cs
- BaseCollection.cs
- Effect.cs
- FormsAuthenticationModule.cs
- TypeLoadException.cs
- WindowsIdentity.cs
- IOException.cs
- ResourcesBuildProvider.cs
- X509CertificateCollection.cs
- SqlMethodCallConverter.cs
- ItemCheckedEvent.cs
- MultiBinding.cs
- RegexCapture.cs
- unsafenativemethodsother.cs
- NavigationHelper.cs
- EdmConstants.cs
- DesignerRegionMouseEventArgs.cs
- NumberFormatter.cs
- ByteStreamGeometryContext.cs
- FormParameter.cs
- CodeStatementCollection.cs
- ResXDataNode.cs
- DependencyObjectProvider.cs
- HttpProfileGroupBase.cs
- WindowsEditBox.cs
- XmlCDATASection.cs
- MetadataFile.cs
- Debug.cs
- KeyFrames.cs
- GeneralTransform3DGroup.cs
- BrushMappingModeValidation.cs
- BaseInfoTable.cs
- DataControlFieldCollection.cs
- Int16.cs
- ProviderIncompatibleException.cs
- PhysicalFontFamily.cs
- PersonalizableTypeEntry.cs
- EventLogPermissionEntryCollection.cs
- SecurityPermission.cs
- RuleSettings.cs
- TraceLevelStore.cs
- X509PeerCertificateAuthenticationElement.cs
- EdmComplexPropertyAttribute.cs
- SwitchElementsCollection.cs
- ClipboardData.cs
- NetMsmqBindingElement.cs
- ObjectDisposedException.cs
- UriScheme.cs
- StatusBar.cs
- InlineUIContainer.cs
- CultureInfoConverter.cs
- ObjectSet.cs
- XmlSchemaDocumentation.cs
- FloatUtil.cs
- WindowsScrollBar.cs
- IPEndPoint.cs
- Predicate.cs
- GridSplitterAutomationPeer.cs
- BindableAttribute.cs
- _Win32.cs
- Section.cs
- QilList.cs
- PopupRoot.cs
- PathHelper.cs
- ListBase.cs
- DataComponentGenerator.cs
- BatchServiceHost.cs
- PerspectiveCamera.cs
- XXXOnTypeBuilderInstantiation.cs
- GridViewPageEventArgs.cs
- RsaSecurityToken.cs
- WebServicesSection.cs
- ClientTargetSection.cs
- DataGridCellAutomationPeer.cs
- Schema.cs
- SetterBaseCollection.cs
- SuppressIldasmAttribute.cs
- OdbcStatementHandle.cs
- CodeNamespaceImport.cs
- ObjectRef.cs
- RNGCryptoServiceProvider.cs
- SQLSingle.cs
- EntityClientCacheKey.cs
- XhtmlBasicFormAdapter.cs
- WMIGenerator.cs
- DataServiceException.cs
- SQLBinary.cs
- ObjectDataSource.cs
- AlphabeticalEnumConverter.cs
- CachedTypeface.cs
- PenContexts.cs
- DocumentSequence.cs
- DataObjectCopyingEventArgs.cs
- SimpleTextLine.cs
- DropDownButton.cs
- Rect3D.cs
- CharacterMetricsDictionary.cs
- ScriptingProfileServiceSection.cs