Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- smtpconnection.cs
- SpellCheck.cs
- _ShellExpression.cs
- StaticFileHandler.cs
- _ContextAwareResult.cs
- ComponentDispatcherThread.cs
- ValidationManager.cs
- elementinformation.cs
- CustomMenuItemCollection.cs
- DebugInfoExpression.cs
- ReliableMessagingHelpers.cs
- ResizingMessageFilter.cs
- VirtualDirectoryMappingCollection.cs
- Pen.cs
- AlignmentYValidation.cs
- UnsafeNativeMethods.cs
- FactoryGenerator.cs
- FilterElement.cs
- ImageButton.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ProcessInfo.cs
- TextContainerChangeEventArgs.cs
- DefaultPropertyAttribute.cs
- Models.cs
- Token.cs
- SectionXmlInfo.cs
- SmiConnection.cs
- CryptoConfig.cs
- MouseEventArgs.cs
- MultilineStringConverter.cs
- StateChangeEvent.cs
- ClientUtils.cs
- IdentityReference.cs
- Base64Decoder.cs
- ListDictionaryInternal.cs
- StringInfo.cs
- RawContentTypeMapper.cs
- RegexRunnerFactory.cs
- OleDbParameterCollection.cs
- SchemaTypeEmitter.cs
- HttpCapabilitiesSectionHandler.cs
- Console.cs
- HttpWrapper.cs
- WindowsFont.cs
- TransactionFlowOption.cs
- CodeDelegateInvokeExpression.cs
- ManifestResourceInfo.cs
- HuffmanTree.cs
- PageOutputColor.cs
- TextRangeEditLists.cs
- TransformProviderWrapper.cs
- Closure.cs
- ProgressBar.cs
- Compress.cs
- AccessViolationException.cs
- CrossAppDomainChannel.cs
- ParserOptions.cs
- ForwardPositionQuery.cs
- COM2TypeInfoProcessor.cs
- ApplicationDirectory.cs
- securestring.cs
- FormViewDeletedEventArgs.cs
- Message.cs
- WebPageTraceListener.cs
- Visual3D.cs
- PerformanceCounterPermissionEntry.cs
- AdornerPresentationContext.cs
- DataService.cs
- BindingElement.cs
- FormatterConverter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- DataList.cs
- RepeaterCommandEventArgs.cs
- PermissionSet.cs
- XmlAttributeCache.cs
- DebuggerAttributes.cs
- ReturnValue.cs
- Query.cs
- EntityDataSourceEntitySetNameItem.cs
- SystemIPv4InterfaceProperties.cs
- PinnedBufferMemoryStream.cs
- PageStatePersister.cs
- FontResourceCache.cs
- CompleteWizardStep.cs
- ResourceReferenceKeyNotFoundException.cs
- UpdateProgress.cs
- TraceHandlerErrorFormatter.cs
- EnumConverter.cs
- WebSysDefaultValueAttribute.cs
- HttpConfigurationSystem.cs
- ObjectDataSourceWizardForm.cs
- UserNameServiceElement.cs
- PageStatePersister.cs
- InputQueueChannelAcceptor.cs
- HorizontalAlignConverter.cs
- IndexedString.cs
- StructuredProperty.cs
- WorkflowServiceBehavior.cs
- Transform3D.cs
- XsdCachingReader.cs