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
- ColorConverter.cs
- _AutoWebProxyScriptEngine.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HostingEnvironment.cs
- RtfControlWordInfo.cs
- OrCondition.cs
- SessionSwitchEventArgs.cs
- ContainerActivationHelper.cs
- DrawingImage.cs
- DrawListViewColumnHeaderEventArgs.cs
- CatalogZoneAutoFormat.cs
- IisTraceWebEventProvider.cs
- XmlText.cs
- ToolStripItemDesigner.cs
- DataList.cs
- ServiceProviders.cs
- SqlTopReducer.cs
- DispatchChannelSink.cs
- _ProxyChain.cs
- TextTreeNode.cs
- SslStream.cs
- SelectingProviderEventArgs.cs
- TypeToken.cs
- filewebrequest.cs
- GPPOINTF.cs
- GlyphInfoList.cs
- HtmlControl.cs
- XmlSchemaAttribute.cs
- ErrorTableItemStyle.cs
- RenderData.cs
- ArrangedElement.cs
- Stream.cs
- OracleString.cs
- ConstraintManager.cs
- SiteMapPath.cs
- URIFormatException.cs
- ASCIIEncoding.cs
- ImmComposition.cs
- PolicyStatement.cs
- DependencyPropertyConverter.cs
- SqlSupersetValidator.cs
- BaseUriHelper.cs
- QuotedPrintableStream.cs
- XPathChildIterator.cs
- XamlInt32CollectionSerializer.cs
- MailWebEventProvider.cs
- HandlerWithFactory.cs
- EntityDataSourceColumn.cs
- DesignBindingValueUIHandler.cs
- XpsImage.cs
- DateBoldEvent.cs
- WebServiceHostFactory.cs
- CatalogPart.cs
- OracleParameter.cs
- ArrayElementGridEntry.cs
- CSharpCodeProvider.cs
- CheckoutException.cs
- SqlMultiplexer.cs
- LabelAutomationPeer.cs
- UniqueContractNameValidationBehavior.cs
- RemotingServices.cs
- ConfigXmlComment.cs
- TrustSection.cs
- XmlHierarchicalDataSourceView.cs
- ClockGroup.cs
- SignatureConfirmationElement.cs
- RoleManagerEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- SettingsContext.cs
- SourceInterpreter.cs
- FilterQueryOptionExpression.cs
- WebUtil.cs
- InkCanvas.cs
- LinkConverter.cs
- DrawListViewSubItemEventArgs.cs
- CellQuery.cs
- GetChildSubtree.cs
- sqlmetadatafactory.cs
- CodeBlockBuilder.cs
- VScrollProperties.cs
- StickyNoteAnnotations.cs
- LineSegment.cs
- WindowsTokenRoleProvider.cs
- VectorCollectionValueSerializer.cs
- ArgumentException.cs
- GZipStream.cs
- TransactionFilter.cs
- JsonDataContract.cs
- CodeIterationStatement.cs
- SoapObjectInfo.cs
- TdsParser.cs
- Point4DValueSerializer.cs
- UnauthorizedWebPart.cs
- AnnotationStore.cs
- ConfigurationLocationCollection.cs
- PropagatorResult.cs
- HtmlGenericControl.cs
- RegexCharClass.cs
- TraceContextRecord.cs
- PreloadedPackages.cs