Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQLDateTimeStorage.cs
- ProjectionPathSegment.cs
- Label.cs
- JsonDeserializer.cs
- IssuedSecurityTokenProvider.cs
- GridEntry.cs
- TransactionContext.cs
- mil_sdk_version.cs
- SchemaName.cs
- CloudCollection.cs
- TextRunProperties.cs
- WindowsToolbar.cs
- ExpressionCopier.cs
- TreeChangeInfo.cs
- NetworkAddressChange.cs
- VectorCollectionValueSerializer.cs
- XPathNavigator.cs
- NativeWrapper.cs
- RequestQueue.cs
- XsdValidatingReader.cs
- CompiledIdentityConstraint.cs
- XmlSchemaSimpleContentExtension.cs
- EventLogPermissionEntryCollection.cs
- WorkerRequest.cs
- SecurityTokenParameters.cs
- ValidatorUtils.cs
- ColumnHeaderCollectionEditor.cs
- adornercollection.cs
- DbConnectionStringCommon.cs
- ConnectionConsumerAttribute.cs
- DesignerDataColumn.cs
- SchemaUtility.cs
- NativeRecognizer.cs
- XmlWriterSettings.cs
- WindowsListViewGroup.cs
- Storyboard.cs
- MediaElement.cs
- WorkflowTransactionService.cs
- WCFBuildProvider.cs
- SettingsProperty.cs
- TextContainer.cs
- Compiler.cs
- DataGridViewHitTestInfo.cs
- CompilationSection.cs
- validationstate.cs
- ListViewTableCell.cs
- DataViewListener.cs
- EditingCommands.cs
- DataDesignUtil.cs
- TemplateGroupCollection.cs
- VisualBasicSettingsHandler.cs
- BreakRecordTable.cs
- PackageRelationshipCollection.cs
- ToolboxDataAttribute.cs
- FieldBuilder.cs
- SourceFilter.cs
- dtdvalidator.cs
- Listbox.cs
- XmlNullResolver.cs
- PassportAuthenticationEventArgs.cs
- System.Data_BID.cs
- TcpClientSocketManager.cs
- DBNull.cs
- VisualTreeHelper.cs
- CompositeScriptReferenceEventArgs.cs
- _DomainName.cs
- LinqDataSourceEditData.cs
- ClassHandlersStore.cs
- XXXInfos.cs
- ProfileElement.cs
- ToolStripGrip.cs
- ListBase.cs
- SimplePropertyEntry.cs
- BoundColumn.cs
- HostingEnvironmentSection.cs
- WebPartCatalogAddVerb.cs
- RenderData.cs
- IisTraceListener.cs
- Bitmap.cs
- TypedElement.cs
- TemplateBindingExpressionConverter.cs
- HtmlAnchor.cs
- InlineCollection.cs
- safemediahandle.cs
- AdapterUtil.cs
- ProfileInfo.cs
- ObjectHandle.cs
- DragDeltaEventArgs.cs
- SamlSecurityTokenAuthenticator.cs
- DescendantQuery.cs
- ServiceProviders.cs
- TextTreeText.cs
- FrameworkPropertyMetadata.cs
- HierarchicalDataTemplate.cs
- TdsEnums.cs
- ImageConverter.cs
- UserControlParser.cs
- ApplicationId.cs
- DescendentsWalker.cs
- Win32Native.cs