Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DesignerVerb.cs
- DbInsertCommandTree.cs
- DataGridViewComboBoxCell.cs
- NamedPipeConnectionPoolSettings.cs
- HtmlAnchor.cs
- XmlQueryCardinality.cs
- WebMessageEncoderFactory.cs
- ContainerActivationHelper.cs
- SmiEventStream.cs
- StatusBar.cs
- RsaEndpointIdentity.cs
- MeasurementDCInfo.cs
- ViewPort3D.cs
- TemplateBindingExtensionConverter.cs
- ExpressionBinding.cs
- SafeUserTokenHandle.cs
- DataRecordInternal.cs
- SoapReflectionImporter.cs
- SlotInfo.cs
- NullExtension.cs
- LineBreak.cs
- SystemUnicastIPAddressInformation.cs
- Point3DValueSerializer.cs
- MouseButton.cs
- ViewStateException.cs
- SiteMapPath.cs
- RenderOptions.cs
- CngKeyCreationParameters.cs
- PropertyReferenceSerializer.cs
- returneventsaver.cs
- ProtocolsConfigurationEntry.cs
- SoapCodeExporter.cs
- CAGDesigner.cs
- ColumnTypeConverter.cs
- XmlNodeComparer.cs
- FilteredReadOnlyMetadataCollection.cs
- BitmapEffectDrawingContextState.cs
- Scheduler.cs
- InputEventArgs.cs
- bindurihelper.cs
- RawUIStateInputReport.cs
- PropertyEmitter.cs
- BufferedGraphicsContext.cs
- AdvancedBindingPropertyDescriptor.cs
- RadioButtonList.cs
- SuppressIldasmAttribute.cs
- QilInvokeLateBound.cs
- Operators.cs
- StringInfo.cs
- PriorityItem.cs
- HttpHandlersSection.cs
- HuffModule.cs
- EntityClassGenerator.cs
- EntityTypeEmitter.cs
- PointConverter.cs
- EntityProxyTypeInfo.cs
- TextRange.cs
- SessionIDManager.cs
- DiffuseMaterial.cs
- ResourceContainer.cs
- sqlinternaltransaction.cs
- ScrollViewerAutomationPeer.cs
- XmlIgnoreAttribute.cs
- FontResourceCache.cs
- MulticastNotSupportedException.cs
- MultiTouchSystemGestureLogic.cs
- IndexedEnumerable.cs
- MaskedTextBox.cs
- MailHeaderInfo.cs
- CompilationSection.cs
- ConnectionStringsExpressionEditor.cs
- ListenerConnectionDemuxer.cs
- MatrixCamera.cs
- RuntimeIdentifierPropertyAttribute.cs
- ParameterDataSourceExpression.cs
- designeractionlistschangedeventargs.cs
- BitmapEffectInput.cs
- Match.cs
- XmlSubtreeReader.cs
- OdbcConnectionStringbuilder.cs
- WhitespaceRuleLookup.cs
- SelectionItemProviderWrapper.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlQualifiedName.cs
- TableNameAttribute.cs
- MultiAsyncResult.cs
- ThaiBuddhistCalendar.cs
- OdbcConnectionStringbuilder.cs
- ClientTargetSection.cs
- TypedServiceOperationListItem.cs
- OptimalTextSource.cs
- DataKey.cs
- ContextMarshalException.cs
- Camera.cs
- BindableTemplateBuilder.cs
- UserPreferenceChangingEventArgs.cs
- XamlTemplateSerializer.cs
- PageSetupDialog.cs
- GuidelineSet.cs
- DetailsViewInsertEventArgs.cs