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
- EditorPartCollection.cs
- EventDriven.cs
- DetailsViewInsertedEventArgs.cs
- QilScopedVisitor.cs
- StreamUpgradeInitiator.cs
- SerialReceived.cs
- ConfigXmlComment.cs
- DefaultPrintController.cs
- WebPartsPersonalization.cs
- NativeCompoundFileAPIs.cs
- DataControlCommands.cs
- ScaleTransform.cs
- RecordBuilder.cs
- RadioButtonStandardAdapter.cs
- RelationshipSet.cs
- TextServicesManager.cs
- DesignerAttribute.cs
- SQLInt32Storage.cs
- BrowserCapabilitiesCodeGenerator.cs
- unsafeIndexingFilterStream.cs
- Screen.cs
- MembershipValidatePasswordEventArgs.cs
- FormViewDeleteEventArgs.cs
- CopyOfAction.cs
- InputLanguageProfileNotifySink.cs
- TextContainerChangeEventArgs.cs
- ExecutionContext.cs
- SerTrace.cs
- SymbolDocumentInfo.cs
- SqlBooleanMismatchVisitor.cs
- ConnectionAcceptor.cs
- DesignTable.cs
- TypeBuilderInstantiation.cs
- XmlWellformedWriter.cs
- RegistrationServices.cs
- WebConfigurationHost.cs
- SQLBytesStorage.cs
- datacache.cs
- ArithmeticException.cs
- DataGridViewTextBoxCell.cs
- RemotingConfiguration.cs
- GradientStopCollection.cs
- Menu.cs
- InProcStateClientManager.cs
- SizeAnimationClockResource.cs
- Stylus.cs
- embossbitmapeffect.cs
- GeneralTransform3DTo2DTo3D.cs
- RangeBaseAutomationPeer.cs
- Regex.cs
- SystemUdpStatistics.cs
- DebugController.cs
- KeyPullup.cs
- XmlSchemaException.cs
- Camera.cs
- ExtendedProperty.cs
- ListViewTableCell.cs
- ComPlusServiceHost.cs
- QilLoop.cs
- XmlHierarchyData.cs
- MachineKeySection.cs
- ImageMetadata.cs
- XmlSchemaExternal.cs
- XmlObjectSerializerWriteContextComplexJson.cs
- FacetDescription.cs
- cookiecontainer.cs
- ControlBindingsConverter.cs
- AutomationIdentifier.cs
- EntityObject.cs
- ClientSettingsProvider.cs
- IRCollection.cs
- DataBindingCollection.cs
- PreservationFileReader.cs
- path.cs
- DocumentPageTextView.cs
- ConnectionStringSettings.cs
- ExpressionBuilder.cs
- CustomCredentialPolicy.cs
- TrackingWorkflowEventArgs.cs
- AccessedThroughPropertyAttribute.cs
- WebEncodingValidator.cs
- _OSSOCK.cs
- QueryCacheEntry.cs
- ColumnResult.cs
- ProfileSection.cs
- OracleRowUpdatedEventArgs.cs
- XmlAnyElementAttribute.cs
- PointCollection.cs
- UpdatePanel.cs
- TraceSwitch.cs
- __TransparentProxy.cs
- MissingFieldException.cs
- ToggleProviderWrapper.cs
- LoginDesignerUtil.cs
- LinearGradientBrush.cs
- DesignerCategoryAttribute.cs
- ContentTextAutomationPeer.cs
- WinInet.cs
- BindingCollection.cs
- StoreAnnotationsMap.cs