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
- BamlRecordReader.cs
- ServiceBuildProvider.cs
- EditorZone.cs
- EventNotify.cs
- GeneralTransform3DGroup.cs
- XmlSerializer.cs
- Descriptor.cs
- FormatConvertedBitmap.cs
- FeatureManager.cs
- EncryptedData.cs
- MethodBuilder.cs
- AssemblyInfo.cs
- DesignerSelectionListAdapter.cs
- ExtenderProvidedPropertyAttribute.cs
- GridItemPatternIdentifiers.cs
- StorageEntitySetMapping.cs
- ToolStripTemplateNode.cs
- TransformerInfoCollection.cs
- _ChunkParse.cs
- DependencyPropertyAttribute.cs
- Pkcs9Attribute.cs
- NumberSubstitution.cs
- Resources.Designer.cs
- Model3DGroup.cs
- ArrayItemValue.cs
- Transform3DGroup.cs
- DesigntimeLicenseContext.cs
- CommandLibraryHelper.cs
- PolyBezierSegment.cs
- SoapExtension.cs
- FunctionCommandText.cs
- PermissionAttributes.cs
- BinaryUtilClasses.cs
- CodeConstructor.cs
- ResourceContainer.cs
- ValidatedControlConverter.cs
- DesignObjectWrapper.cs
- DependencyPropertyKey.cs
- ColumnResizeAdorner.cs
- parserscommon.cs
- SecUtil.cs
- baseaxisquery.cs
- ObjectQueryProvider.cs
- SoapReflector.cs
- SelectionItemProviderWrapper.cs
- FieldBuilder.cs
- GridPatternIdentifiers.cs
- DataKeyPropertyAttribute.cs
- BypassElementCollection.cs
- HelpInfo.cs
- PathStreamGeometryContext.cs
- MailSettingsSection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- DataSourceGeneratorException.cs
- Publisher.cs
- BreakRecordTable.cs
- SQLDateTime.cs
- Message.cs
- ImageCollectionEditor.cs
- counter.cs
- AsymmetricAlgorithm.cs
- SizeAnimationBase.cs
- ManifestBasedResourceGroveler.cs
- SponsorHelper.cs
- TableRowGroupCollection.cs
- EntityEntry.cs
- MultiPropertyDescriptorGridEntry.cs
- PropertyDescriptorComparer.cs
- Attributes.cs
- XmlAggregates.cs
- TextViewElement.cs
- AnonymousIdentificationSection.cs
- KeyGestureConverter.cs
- BindMarkupExtensionSerializer.cs
- ImmutableObjectAttribute.cs
- WinFormsSpinner.cs
- MenuCommand.cs
- IItemProperties.cs
- DBSchemaRow.cs
- AutoCompleteStringCollection.cs
- TabletDevice.cs
- UpdatableWrapper.cs
- MatcherBuilder.cs
- Options.cs
- DataRowComparer.cs
- RuntimeArgument.cs
- SkipQueryOptionExpression.cs
- NamespaceQuery.cs
- NonBatchDirectoryCompiler.cs
- BindingContext.cs
- TextElementEnumerator.cs
- PersonalizationEntry.cs
- ObjectReferenceStack.cs
- FlowNode.cs
- EventLogPermissionEntry.cs
- basenumberconverter.cs
- DelegatingConfigHost.cs
- _HeaderInfo.cs
- HtmlInputReset.cs
- ThreadStartException.cs