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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TaiwanCalendar.cs
- ProcessHostConfigUtils.cs
- GenericIdentity.cs
- RelationshipEnd.cs
- DBConnectionString.cs
- DispatcherTimer.cs
- UnsafeCollabNativeMethods.cs
- StateMachine.cs
- DataGridViewTopLeftHeaderCell.cs
- HostingEnvironmentSection.cs
- TextEditorThreadLocalStore.cs
- SingleTagSectionHandler.cs
- XmlSecureResolver.cs
- GridLengthConverter.cs
- ContainerFilterService.cs
- AudioFileOut.cs
- ClonableStack.cs
- login.cs
- RequestStatusBarUpdateEventArgs.cs
- RawUIStateInputReport.cs
- DataGridColumnCollection.cs
- XmlSerializerOperationFormatter.cs
- StdValidatorsAndConverters.cs
- PropertyValueChangedEvent.cs
- Geometry3D.cs
- InputScopeNameConverter.cs
- HuffmanTree.cs
- MultiBinding.cs
- SplineKeyFrames.cs
- WrappedKeySecurityToken.cs
- IntSecurity.cs
- HttpClientCertificate.cs
- CodeIdentifier.cs
- GraphicsContext.cs
- AncillaryOps.cs
- SystemIPInterfaceProperties.cs
- CompositeScriptReferenceEventArgs.cs
- Invariant.cs
- CryptoSession.cs
- SettingsPropertyNotFoundException.cs
- ReadOnlyCollection.cs
- OrderedDictionaryStateHelper.cs
- PowerStatus.cs
- MaskDescriptor.cs
- OutOfMemoryException.cs
- COM2ExtendedUITypeEditor.cs
- ModelTreeEnumerator.cs
- DataBindingHandlerAttribute.cs
- ScriptingJsonSerializationSection.cs
- HttpProxyCredentialType.cs
- PolygonHotSpot.cs
- ImmutableCollection.cs
- CompiledIdentityConstraint.cs
- SqlConnectionPoolProviderInfo.cs
- ParentUndoUnit.cs
- TextDocumentView.cs
- Msec.cs
- DLinqColumnProvider.cs
- ReadOnlyDictionary.cs
- WebPartHeaderCloseVerb.cs
- clipboard.cs
- SQLResource.cs
- HebrewNumber.cs
- ObjectHelper.cs
- HttpMethodConstraint.cs
- IndexedEnumerable.cs
- ResXBuildProvider.cs
- DataTemplate.cs
- updateconfighost.cs
- GeneralTransform3D.cs
- TreeIterators.cs
- Nullable.cs
- SessionStateItemCollection.cs
- ReadOnlyPropertyMetadata.cs
- FactoryGenerator.cs
- UpdateManifestForBrowserApplication.cs
- SocketInformation.cs
- CardSpacePolicyElement.cs
- DataAccessor.cs
- CTreeGenerator.cs
- _ConnectStream.cs
- MulticastDelegate.cs
- FaultHandlingFilter.cs
- FormsAuthenticationTicket.cs
- Utils.cs
- OdbcDataReader.cs
- StrongNameIdentityPermission.cs
- InkSerializer.cs
- DocumentCollection.cs
- ClonableStack.cs
- _AcceptOverlappedAsyncResult.cs
- StaticResourceExtension.cs
- Vector3DAnimationUsingKeyFrames.cs
- CommandID.cs
- DataSourceCacheDurationConverter.cs
- Style.cs
- MemberDescriptor.cs
- Table.cs
- SafeBitVector32.cs
- InOutArgument.cs