Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- OdbcError.cs
- TypeForwardedFromAttribute.cs
- GridItemPatternIdentifiers.cs
- TextRunTypographyProperties.cs
- DocumentPage.cs
- ImageList.cs
- BoolExpressionVisitors.cs
- DeflateStream.cs
- Filter.cs
- Screen.cs
- SpecialNameAttribute.cs
- ImplicitInputBrush.cs
- HtmlInputImage.cs
- SettingsPropertyCollection.cs
- GroupBoxRenderer.cs
- WriteFileContext.cs
- COM2Enum.cs
- XsltSettings.cs
- RotateTransform3D.cs
- DrawingGroup.cs
- ObservableCollectionDefaultValueFactory.cs
- FacetEnabledSchemaElement.cs
- XmlArrayItemAttribute.cs
- RuleSettingsCollection.cs
- PropertyChangedEventArgs.cs
- ObjectDataSource.cs
- ToolStripSettings.cs
- InheritanceContextHelper.cs
- CategoryNameCollection.cs
- AssemblyBuilderData.cs
- ResourceDisplayNameAttribute.cs
- ColorPalette.cs
- FieldBuilder.cs
- Component.cs
- CounterSample.cs
- EventSourceCreationData.cs
- AppDomainShutdownMonitor.cs
- XmlAttributeCache.cs
- TraceSection.cs
- XmlDataCollection.cs
- EnlistmentState.cs
- CommandHelpers.cs
- ImportFileRequest.cs
- XmlSchemaElement.cs
- ViewBox.cs
- HealthMonitoringSection.cs
- InkCollectionBehavior.cs
- WebPartVerbsEventArgs.cs
- MSAANativeProvider.cs
- SimpleWebHandlerParser.cs
- Window.cs
- BitmapEffectrendercontext.cs
- XmlSchemaType.cs
- FunctionDescription.cs
- Utils.cs
- DetailsViewDeleteEventArgs.cs
- NativeMethods.cs
- ObjectDataSourceView.cs
- FillErrorEventArgs.cs
- PocoEntityKeyStrategy.cs
- SQLMembershipProvider.cs
- ClockController.cs
- StructuredTypeInfo.cs
- BlockUIContainer.cs
- QilGeneratorEnv.cs
- URLAttribute.cs
- SqlColumnizer.cs
- CodeDomDecompiler.cs
- WebScriptMetadataInstanceContextProvider.cs
- WindowsGraphics.cs
- ResourcesBuildProvider.cs
- HttpConfigurationSystem.cs
- PolyQuadraticBezierSegment.cs
- COMException.cs
- Ref.cs
- XmlSerializerAssemblyAttribute.cs
- OdbcConnectionPoolProviderInfo.cs
- ConstantExpression.cs
- DeferrableContent.cs
- Point3DCollection.cs
- StringValidatorAttribute.cs
- SqlProfileProvider.cs
- SymbolDocumentInfo.cs
- AssociationType.cs
- EastAsianLunisolarCalendar.cs
- HostedBindingBehavior.cs
- RectConverter.cs
- CompileLiteralTextParser.cs
- NameValueConfigurationElement.cs
- InvalidateEvent.cs
- CompressionTransform.cs
- UiaCoreProviderApi.cs
- AcceleratedTokenProvider.cs
- XmlSchemaComplexType.cs
- ActivityWithResultValueSerializer.cs
- XmlCharCheckingWriter.cs
- MultipartIdentifier.cs
- ZoneButton.cs
- ButtonBaseAdapter.cs
- ButtonBase.cs