Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / DataWeb / Client / System / Data / Services / Client / MimeTypePropertyAttribute.cs / 1305376 / 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; ////// 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; ////// 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
- DataRecord.cs
- Exceptions.cs
- UrlUtility.cs
- RawStylusInput.cs
- DbResourceAllocator.cs
- FontDifferentiator.cs
- GB18030Encoding.cs
- _Semaphore.cs
- HttpHandlersSection.cs
- RelationshipType.cs
- WebBrowserContainer.cs
- RoleManagerModule.cs
- RepeaterCommandEventArgs.cs
- SiteIdentityPermission.cs
- MatrixAnimationUsingPath.cs
- Material.cs
- DisplayClaim.cs
- BaseAsyncResult.cs
- PagePropertiesChangingEventArgs.cs
- XamlWrappingReader.cs
- SimplePropertyEntry.cs
- DbModificationClause.cs
- RangeContentEnumerator.cs
- ErrorProvider.cs
- XmlSchemaAttribute.cs
- VariantWrapper.cs
- UpdateRecord.cs
- RecognizedWordUnit.cs
- TableLayoutSettingsTypeConverter.cs
- DataGridViewLinkColumn.cs
- EditorBrowsableAttribute.cs
- KnownBoxes.cs
- NavigationWindowAutomationPeer.cs
- EntityDataSourceContainerNameItem.cs
- GraphicsPath.cs
- InheritedPropertyChangedEventArgs.cs
- FrameSecurityDescriptor.cs
- SqlCharStream.cs
- BooleanSwitch.cs
- ServiceDocumentFormatter.cs
- UnsafeNativeMethods.cs
- ResolveNameEventArgs.cs
- ParserOptions.cs
- _IPv6Address.cs
- CustomAttributeFormatException.cs
- HandleCollector.cs
- Visitors.cs
- HtmlContainerControl.cs
- TdsParserSessionPool.cs
- Dynamic.cs
- RtfToXamlLexer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- ResourceReferenceExpressionConverter.cs
- DataGridRowDetailsEventArgs.cs
- TransformGroup.cs
- Region.cs
- LineInfo.cs
- ColorMatrix.cs
- PolygonHotSpot.cs
- ParsedAttributeCollection.cs
- DialogResultConverter.cs
- wmiprovider.cs
- XmlSignatureManifest.cs
- PreviewKeyDownEventArgs.cs
- TextBoxRenderer.cs
- TrustLevelCollection.cs
- OutputCacheSection.cs
- AutoGeneratedFieldProperties.cs
- JournalEntryStack.cs
- MultipartContentParser.cs
- FormsAuthenticationUserCollection.cs
- ComponentManagerBroker.cs
- ProfileEventArgs.cs
- ControlUtil.cs
- HtmlInputText.cs
- EditorPartChrome.cs
- SrgsElement.cs
- ToolStripStatusLabel.cs
- SmiConnection.cs
- DelegateBodyWriter.cs
- GlobalProxySelection.cs
- GridItem.cs
- EventSourceCreationData.cs
- ProjectionCamera.cs
- CqlQuery.cs
- RoleGroupCollection.cs
- EmptyEnumerable.cs
- PolyBezierSegmentFigureLogic.cs
- SQLCharsStorage.cs
- ByteFacetDescriptionElement.cs
- columnmapfactory.cs
- XPathBuilder.cs
- DefaultValueAttribute.cs
- EventBindingService.cs
- CounterSetInstance.cs
- WebPartZoneBaseDesigner.cs
- RealProxy.cs
- Operator.cs
- SendMailErrorEventArgs.cs
- NotifyParentPropertyAttribute.cs