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
- InstanceDataCollection.cs
- Image.cs
- SplitterEvent.cs
- ExtensionSurface.cs
- XmlSiteMapProvider.cs
- ReferenceAssemblyAttribute.cs
- LockedAssemblyCache.cs
- ActiveXSite.cs
- TextRenderer.cs
- CompressEmulationStream.cs
- SerializationFieldInfo.cs
- XmlTextReaderImpl.cs
- Win32Exception.cs
- DataBindingExpressionBuilder.cs
- UxThemeWrapper.cs
- IPipelineRuntime.cs
- AesManaged.cs
- IteratorFilter.cs
- SqlCharStream.cs
- DataBindingExpressionBuilder.cs
- SR.cs
- SqlCaseSimplifier.cs
- PointLightBase.cs
- ResourceExpressionBuilder.cs
- CLSCompliantAttribute.cs
- AccessedThroughPropertyAttribute.cs
- XmlComplianceUtil.cs
- WindowsFormsHost.cs
- XsltArgumentList.cs
- MessageQueue.cs
- GeometryModel3D.cs
- MasterPageParser.cs
- FixedTextView.cs
- OleDbInfoMessageEvent.cs
- PanelStyle.cs
- SmiEventSink_Default.cs
- SmtpNegotiateAuthenticationModule.cs
- IItemContainerGenerator.cs
- SafeCryptoHandles.cs
- ForwardPositionQuery.cs
- ContainerUIElement3D.cs
- DynamicRouteExpression.cs
- CharKeyFrameCollection.cs
- NonBatchDirectoryCompiler.cs
- TraceSection.cs
- BuildManagerHost.cs
- CodeGen.cs
- File.cs
- TextChange.cs
- EncoderParameter.cs
- _DigestClient.cs
- SimpleRecyclingCache.cs
- XmlUtil.cs
- ProcessManager.cs
- ScrollEventArgs.cs
- DataGrid.cs
- WebControl.cs
- SettingsPropertyNotFoundException.cs
- SkipQueryOptionExpression.cs
- DefaultTraceListener.cs
- WindowsFormsHelpers.cs
- DependencyObjectType.cs
- UpdatePanelControlTrigger.cs
- WindowsRichEdit.cs
- FontFamily.cs
- DateTimeConverter2.cs
- XmlWhitespace.cs
- DataList.cs
- IdleTimeoutMonitor.cs
- RelationshipDetailsRow.cs
- LinkUtilities.cs
- WeakReferenceKey.cs
- Rijndael.cs
- XmlSchemaValidationException.cs
- DrawingState.cs
- GB18030Encoding.cs
- CompilationSection.cs
- PropertyPath.cs
- EditorZone.cs
- ColorPalette.cs
- LogSwitch.cs
- InputProviderSite.cs
- BinaryOperationBinder.cs
- ConnectionManagementElementCollection.cs
- HttpResponseInternalBase.cs
- RoleGroup.cs
- XmlIlTypeHelper.cs
- ellipse.cs
- ObjectItemAttributeAssemblyLoader.cs
- TextRunCacheImp.cs
- AbsoluteQuery.cs
- DataGridTablesFactory.cs
- PropertyEmitterBase.cs
- DependencySource.cs
- XmlDataImplementation.cs
- XmlMemberMapping.cs
- Attributes.cs
- TypeToStringValueConverter.cs
- PageRanges.cs
- RecordConverter.cs