Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StylusDownEventArgs.cs
- CollectionsUtil.cs
- SystemIcons.cs
- GeneralTransformCollection.cs
- DataSourceSelectArguments.cs
- MimeMapping.cs
- GeneralTransform3DGroup.cs
- XmlQualifiedNameTest.cs
- OdbcFactory.cs
- DPCustomTypeDescriptor.cs
- SessionPageStatePersister.cs
- CommandLibraryHelper.cs
- FileDialogCustomPlace.cs
- SafeLibraryHandle.cs
- SingleQueryOperator.cs
- DataGridViewComboBoxEditingControl.cs
- PasswordRecovery.cs
- EncryptedData.cs
- DoWorkEventArgs.cs
- RMEnrollmentPage1.cs
- XMLSchema.cs
- HttpModuleAction.cs
- MemoryPressure.cs
- EntityConnection.cs
- PipeException.cs
- assemblycache.cs
- PeerTransportBindingElement.cs
- GlyphRunDrawing.cs
- ComEventsMethod.cs
- DataSourceControl.cs
- GridViewDeleteEventArgs.cs
- PropertyGridView.cs
- RemotingServices.cs
- MethodRental.cs
- ErrorEventArgs.cs
- ObjectPersistData.cs
- DrawItemEvent.cs
- TypeLibConverter.cs
- documentsequencetextpointer.cs
- IPPacketInformation.cs
- MessagePropertyAttribute.cs
- SqlOuterApplyReducer.cs
- ExecutionScope.cs
- CollectionsUtil.cs
- DataGridCell.cs
- DependencyPropertyHelper.cs
- GroupQuery.cs
- ListCommandEventArgs.cs
- CodeBinaryOperatorExpression.cs
- RetrieveVirtualItemEventArgs.cs
- FileSecurity.cs
- BatchStream.cs
- ProjectionNode.cs
- HandlerBase.cs
- COAUTHIDENTITY.cs
- InkCollectionBehavior.cs
- MonthCalendarDesigner.cs
- GZipStream.cs
- DependencyPropertyAttribute.cs
- Clipboard.cs
- ToolStripItemTextRenderEventArgs.cs
- SchemaRegistration.cs
- TextEditorCopyPaste.cs
- SortedDictionary.cs
- InvokePattern.cs
- UseLicense.cs
- ChildChangedEventArgs.cs
- WebPartMovingEventArgs.cs
- DependencyObjectPropertyDescriptor.cs
- NamespaceCollection.cs
- CodeExpressionCollection.cs
- UdpTransportSettingsElement.cs
- TextDecorationCollection.cs
- BaseWebProxyFinder.cs
- RenderingEventArgs.cs
- GraphicsContainer.cs
- LinearQuaternionKeyFrame.cs
- MetafileHeaderWmf.cs
- BitConverter.cs
- FontDriver.cs
- MouseButtonEventArgs.cs
- ItemDragEvent.cs
- SessionPageStatePersister.cs
- WindowsMenu.cs
- LinearKeyFrames.cs
- StretchValidation.cs
- CodeGotoStatement.cs
- MeasureItemEvent.cs
- DotNetATv1WindowsLogEntrySerializer.cs
- TextTreeExtractElementUndoUnit.cs
- ColorMatrix.cs
- ConnectionManagementElementCollection.cs
- GenericTextProperties.cs
- VBCodeProvider.cs
- MarkedHighlightComponent.cs
- VectorConverter.cs
- RegexBoyerMoore.cs
- TemplatePartAttribute.cs
- StringBuilder.cs
- ControlDesignerState.cs