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
- TextSegment.cs
- ScriptBehaviorDescriptor.cs
- SecurityState.cs
- SqlDesignerDataSourceView.cs
- ISAPIRuntime.cs
- AdRotatorDesigner.cs
- HandlerBase.cs
- Rule.cs
- RelationshipSet.cs
- DataSourceXmlSerializationAttribute.cs
- ProcessHostConfigUtils.cs
- TypedDatasetGenerator.cs
- EditorPartChrome.cs
- DataGridPageChangedEventArgs.cs
- BookmarkOptionsHelper.cs
- ButtonDesigner.cs
- DiagnosticsConfigurationHandler.cs
- FileDialogCustomPlaces.cs
- DataBinder.cs
- StringReader.cs
- OleDbConnectionFactory.cs
- ConnectorRouter.cs
- XmlSchemaException.cs
- StreamSecurityUpgradeInitiator.cs
- LinkGrep.cs
- DataGridCellInfo.cs
- SecurityDocument.cs
- TitleStyle.cs
- TemplateKeyConverter.cs
- DirectionalLight.cs
- ContainerVisual.cs
- _AutoWebProxyScriptEngine.cs
- GeneralTransform2DTo3DTo2D.cs
- SqlDependency.cs
- XmlSchemaException.cs
- WebPartHeaderCloseVerb.cs
- SqlProcedureAttribute.cs
- SchemaCollectionPreprocessor.cs
- RepeaterCommandEventArgs.cs
- FormClosingEvent.cs
- ZoneMembershipCondition.cs
- IncrementalReadDecoders.cs
- RemotingClientProxy.cs
- updatecommandorderer.cs
- RelationshipWrapper.cs
- Style.cs
- WrapPanel.cs
- ChannelSettingsElement.cs
- ListComponentEditorPage.cs
- InternalBase.cs
- SelectionItemProviderWrapper.cs
- StringSorter.cs
- SqlException.cs
- OledbConnectionStringbuilder.cs
- HelloMessageCD1.cs
- SchemaImporterExtensionElement.cs
- FlowLayoutPanelDesigner.cs
- DetailsViewUpdatedEventArgs.cs
- CallId.cs
- ControlUtil.cs
- CachedTypeface.cs
- MatcherBuilder.cs
- FragmentNavigationEventArgs.cs
- DataGridViewSelectedColumnCollection.cs
- MetadataPropertyAttribute.cs
- CheckBoxField.cs
- TypeSystem.cs
- ObjectItemCollection.cs
- ReadOnlyPropertyMetadata.cs
- ByteStream.cs
- ResourceBinder.cs
- AspNetSynchronizationContext.cs
- CrossSiteScriptingValidation.cs
- WebPartsPersonalizationAuthorization.cs
- CustomValidator.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- VirtualPathProvider.cs
- ScopedKnownTypes.cs
- ProgressBarAutomationPeer.cs
- FileSystemInfo.cs
- SegmentInfo.cs
- SerializationSectionGroup.cs
- TypefaceMap.cs
- PerfCounters.cs
- MsmqInputSessionChannelListener.cs
- WindowsFormsHost.cs
- ExpandCollapseProviderWrapper.cs
- DynamicDiscoSearcher.cs
- MinimizableAttributeTypeConverter.cs
- WindowsSpinner.cs
- TrackingParameters.cs
- SiteIdentityPermission.cs
- CodeDOMUtility.cs
- XPathDescendantIterator.cs
- TdsValueSetter.cs
- StringAttributeCollection.cs
- EventDescriptor.cs
- RelationshipNavigation.cs
- UrlPath.cs
- InitializerFacet.cs