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
- Random.cs
- IOThreadTimer.cs
- CodeObjectCreateExpression.cs
- MenuItemCollectionEditorDialog.cs
- DesignerValidationSummaryAdapter.cs
- XmlHierarchyData.cs
- PrimitiveXmlSerializers.cs
- RootDesignerSerializerAttribute.cs
- PopupEventArgs.cs
- TextAnchor.cs
- SqlReferenceCollection.cs
- AnonymousIdentificationModule.cs
- TextTreeTextNode.cs
- DataSourceHelper.cs
- KeyGestureValueSerializer.cs
- ToolStripArrowRenderEventArgs.cs
- PathSegmentCollection.cs
- DataServiceBehavior.cs
- XmlSchemaDatatype.cs
- SimpleType.cs
- FontStretches.cs
- UIAgentMonitor.cs
- XmlTextEncoder.cs
- SplitterPanelDesigner.cs
- TraceHandlerErrorFormatter.cs
- HtmlTitle.cs
- SmiRecordBuffer.cs
- OutputCacheSettingsSection.cs
- SoapAttributeAttribute.cs
- SingleObjectCollection.cs
- RightsManagementResourceHelper.cs
- COM2PropertyDescriptor.cs
- Cursor.cs
- CodeMethodReturnStatement.cs
- WindowAutomationPeer.cs
- Timer.cs
- ApplyTemplatesAction.cs
- Pen.cs
- TaskForm.cs
- Types.cs
- Code.cs
- Size3D.cs
- PerformanceCountersElement.cs
- MachineSettingsSection.cs
- CharacterBuffer.cs
- ResourceIDHelper.cs
- EventDescriptor.cs
- SQLSingleStorage.cs
- SystemUdpStatistics.cs
- CodeTypeDeclarationCollection.cs
- Graph.cs
- ButtonField.cs
- DataServiceHostFactory.cs
- GroupBox.cs
- BitStack.cs
- CompositeActivityDesigner.cs
- InOutArgument.cs
- ThousandthOfEmRealPoints.cs
- DataGridViewSelectedCellCollection.cs
- Adorner.cs
- PictureBoxDesigner.cs
- PreservationFileWriter.cs
- DependsOnAttribute.cs
- RemoteWebConfigurationHost.cs
- XamlParser.cs
- ConfigurationManagerHelper.cs
- SmiContextFactory.cs
- XmlLinkedNode.cs
- DateTimeStorage.cs
- BCLDebug.cs
- ExpressionBinding.cs
- MultiPartWriter.cs
- XmlIterators.cs
- PartialCachingControl.cs
- XmlSerializerSection.cs
- GeneralTransform3D.cs
- CAGDesigner.cs
- TimeSpanStorage.cs
- CardSpaceShim.cs
- CodeMemberEvent.cs
- MultiPageTextView.cs
- SelectedGridItemChangedEvent.cs
- DataListItem.cs
- PolyLineSegment.cs
- NameValueCollection.cs
- SortFieldComparer.cs
- BigIntegerStorage.cs
- MessageDecoder.cs
- InternalsVisibleToAttribute.cs
- BuilderInfo.cs
- URLAttribute.cs
- EntityCollection.cs
- PluralizationServiceUtil.cs
- SafeCancelMibChangeNotify.cs
- Operator.cs
- PartialClassGenerationTaskInternal.cs
- TreeView.cs
- ApplicationManager.cs
- TextServicesCompartmentContext.cs
- TrueReadOnlyCollection.cs