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
- PhysicalAddress.cs
- OracleEncoding.cs
- SolidColorBrush.cs
- LOSFormatter.cs
- RemoteWebConfigurationHost.cs
- AccessedThroughPropertyAttribute.cs
- ActivationServices.cs
- SchemaHelper.cs
- NeutralResourcesLanguageAttribute.cs
- ImmutablePropertyDescriptorGridEntry.cs
- DebugHandleTracker.cs
- IUnknownConstantAttribute.cs
- HtmlLink.cs
- UriSectionReader.cs
- SuppressMessageAttribute.cs
- WebPartConnection.cs
- SmiContext.cs
- Imaging.cs
- OleDbRowUpdatingEvent.cs
- ReturnType.cs
- ProtectedConfiguration.cs
- QuadTree.cs
- CharacterMetricsDictionary.cs
- ClientFormsAuthenticationCredentials.cs
- FileBasedResourceGroveler.cs
- RoutedCommand.cs
- BitmapMetadata.cs
- basecomparevalidator.cs
- DomainUpDown.cs
- HttpCookieCollection.cs
- ShaderEffect.cs
- FolderLevelBuildProvider.cs
- ServiceDesigner.cs
- Range.cs
- XmlIlVisitor.cs
- Or.cs
- AssemblySettingAttributes.cs
- DecoderBestFitFallback.cs
- PeerCredential.cs
- OleDbRowUpdatingEvent.cs
- XMLUtil.cs
- AlternationConverter.cs
- Base64WriteStateInfo.cs
- Shape.cs
- ActiveXHelper.cs
- HTTPRemotingHandler.cs
- DataTableCollection.cs
- BufferedWebEventProvider.cs
- RegexReplacement.cs
- EdgeProfileValidation.cs
- Error.cs
- StatusStrip.cs
- ControlBindingsCollection.cs
- DockingAttribute.cs
- TextParentUndoUnit.cs
- EmptyReadOnlyDictionaryInternal.cs
- CompositeActivityTypeDescriptorProvider.cs
- DiagnosticTraceSource.cs
- JournalEntryListConverter.cs
- XmlSchemaInclude.cs
- NameScopePropertyAttribute.cs
- ActiveDesignSurfaceEvent.cs
- WorkflowInstanceUnhandledExceptionRecord.cs
- HandleCollector.cs
- dataprotectionpermission.cs
- Converter.cs
- ServiceProviders.cs
- HttpConfigurationContext.cs
- ElementNotAvailableException.cs
- PlanCompilerUtil.cs
- ProfileService.cs
- NameTable.cs
- ClientTargetSection.cs
- TablePattern.cs
- HebrewCalendar.cs
- SQLInt32.cs
- ParserHooks.cs
- WindowsGraphicsWrapper.cs
- SqlGenericUtil.cs
- CharacterMetrics.cs
- CodeTypeParameter.cs
- CallbackValidator.cs
- ToolStripItemTextRenderEventArgs.cs
- TreeNodeCollection.cs
- SafeLibraryHandle.cs
- WindowsUpDown.cs
- TransformedBitmap.cs
- DocumentReferenceCollection.cs
- DataGridPageChangedEventArgs.cs
- XmlSchemaNotation.cs
- ToolStripItemEventArgs.cs
- WindowsSlider.cs
- DrawingVisual.cs
- Bind.cs
- SeparatorAutomationPeer.cs
- BooleanAnimationBase.cs
- GridViewDeletedEventArgs.cs
- GetPolicyDetailsRequest.cs
- FlowDocumentReader.cs
- SafeTokenHandle.cs