Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- KoreanCalendar.cs
- TableRowGroup.cs
- DataGridViewElement.cs
- HMACSHA384.cs
- ProcessHostServerConfig.cs
- Stacktrace.cs
- ClientScriptManagerWrapper.cs
- WebException.cs
- ScrollItemPattern.cs
- ObjectDataSourceEventArgs.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- SessionState.cs
- TagMapInfo.cs
- ProfilePropertySettings.cs
- TypeResolver.cs
- LongPath.cs
- UInt16.cs
- EntityClientCacheKey.cs
- SamlConditions.cs
- PageWrapper.cs
- WebScriptMetadataMessageEncoderFactory.cs
- SqlDataSourceParameterParser.cs
- GridViewUpdatedEventArgs.cs
- Documentation.cs
- NavigationProperty.cs
- MimeFormatter.cs
- ResourceDescriptionAttribute.cs
- WebPageTraceListener.cs
- CodeGenHelper.cs
- TextUtf8RawTextWriter.cs
- ResXResourceSet.cs
- MulticastIPAddressInformationCollection.cs
- SimpleBitVector32.cs
- EncoderBestFitFallback.cs
- TextModifierScope.cs
- SelectionItemProviderWrapper.cs
- EntityDataSourceContextCreatedEventArgs.cs
- ObjectDisposedException.cs
- DrawingGroupDrawingContext.cs
- DirectionalLight.cs
- BrowserInteropHelper.cs
- XmlByteStreamReader.cs
- ContentFilePart.cs
- SecurityDocument.cs
- Normalization.cs
- SQLUtility.cs
- SafeEventLogReadHandle.cs
- QuaternionValueSerializer.cs
- ToolbarAUtomationPeer.cs
- MessageDescriptionCollection.cs
- SelectionPatternIdentifiers.cs
- TableHeaderCell.cs
- DataGridTablesFactory.cs
- Label.cs
- RemotingSurrogateSelector.cs
- ProfileInfo.cs
- Matrix3DValueSerializer.cs
- FullTextBreakpoint.cs
- BrowserTree.cs
- ImageMap.cs
- GridViewRow.cs
- DisplayInformation.cs
- Variable.cs
- FocusWithinProperty.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TdsEnums.cs
- HostingEnvironmentSection.cs
- SqlExpander.cs
- CopyOnWriteList.cs
- Fx.cs
- StreamUpdate.cs
- HelpOperationInvoker.cs
- FileDialogCustomPlace.cs
- OutputCacheProfileCollection.cs
- ControlBuilderAttribute.cs
- SiteMapNode.cs
- SiteMembershipCondition.cs
- XsdBuildProvider.cs
- DesignerCategoryAttribute.cs
- EntityTypeBase.cs
- InputElement.cs
- EventRoute.cs
- TraceData.cs
- AccessedThroughPropertyAttribute.cs
- InteropAutomationProvider.cs
- EventsTab.cs
- AdjustableArrowCap.cs
- StringUtil.cs
- SqlRemoveConstantOrderBy.cs
- HttpProcessUtility.cs
- Style.cs
- PinnedBufferMemoryStream.cs
- WebPartRestoreVerb.cs
- XamlLoadErrorInfo.cs
- ToolStripDropTargetManager.cs
- KeyedHashAlgorithm.cs
- CustomTypeDescriptor.cs
- Attributes.cs
- SegmentInfo.cs
- TextEvent.cs