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
- SqlClientWrapperSmiStreamChars.cs
- UnionCqlBlock.cs
- AuthenticatingEventArgs.cs
- FormatPage.cs
- SignatureHelper.cs
- ButtonPopupAdapter.cs
- ComboBox.cs
- EventDescriptorCollection.cs
- RegexNode.cs
- GlyphRunDrawing.cs
- DataServiceProcessingPipelineEventArgs.cs
- OutputScopeManager.cs
- BasicExpandProvider.cs
- SessionSwitchEventArgs.cs
- _StreamFramer.cs
- ToolStripGrip.cs
- ResXDataNode.cs
- XmlTextEncoder.cs
- OneToOneMappingSerializer.cs
- ConfigDefinitionUpdates.cs
- EventLogPermissionEntryCollection.cs
- WSTrustDec2005.cs
- XmlSchemaComplexContent.cs
- GridViewDeletedEventArgs.cs
- SubpageParagraph.cs
- MouseButton.cs
- Size3DValueSerializer.cs
- FunctionDetailsReader.cs
- AttachInfo.cs
- UInt16Storage.cs
- TreeViewBindingsEditor.cs
- FixedDocumentSequencePaginator.cs
- dataobject.cs
- BamlRecordHelper.cs
- IdentityNotMappedException.cs
- CheckableControlBaseAdapter.cs
- Behavior.cs
- ConnectionStringsExpressionEditor.cs
- NativeMethods.cs
- ControlIdConverter.cs
- SafeNativeMethodsMilCoreApi.cs
- StylusPointProperty.cs
- ListViewDeletedEventArgs.cs
- AuditLog.cs
- CodeTryCatchFinallyStatement.cs
- HealthMonitoringSectionHelper.cs
- ObjectTypeMapping.cs
- HealthMonitoringSectionHelper.cs
- StandardCommands.cs
- x509utils.cs
- SQLConvert.cs
- ComponentCollection.cs
- Mappings.cs
- XmlnsCache.cs
- TCEAdapterGenerator.cs
- securitycriticaldataClass.cs
- OleDbConnectionFactory.cs
- XPathPatternBuilder.cs
- PersonalizationStateQuery.cs
- SqlTypeSystemProvider.cs
- ObjectManager.cs
- XmlUrlResolver.cs
- SubtreeProcessor.cs
- UniqueID.cs
- MethodBuilderInstantiation.cs
- ScrollBarAutomationPeer.cs
- MergeFilterQuery.cs
- JpegBitmapDecoder.cs
- ProtocolProfile.cs
- TreeNodeBindingCollection.cs
- BasicHttpMessageSecurityElement.cs
- Compiler.cs
- TreeChangeInfo.cs
- Rect3DValueSerializer.cs
- Matrix.cs
- AddInActivator.cs
- ConnectionStringsSection.cs
- URLIdentityPermission.cs
- DebugControllerThread.cs
- ByteStack.cs
- DoubleKeyFrameCollection.cs
- TextTreeObjectNode.cs
- WebEvents.cs
- BridgeDataReader.cs
- HttpStreams.cs
- WinFormsSpinner.cs
- ToolStripDropDownButton.cs
- FileDialog_Vista.cs
- PassportAuthentication.cs
- StorageMappingItemLoader.cs
- BitmapData.cs
- TextShapeableCharacters.cs
- CharacterString.cs
- BitmapEffectInput.cs
- EntitySqlQueryCacheEntry.cs
- TabItemWrapperAutomationPeer.cs
- SelectionPattern.cs
- XmlSchemaSimpleContentRestriction.cs
- IIS7WorkerRequest.cs
- CodeTypeDeclaration.cs