Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SqlProvider.cs
- EntityDataReader.cs
- SuppressMessageAttribute.cs
- RenameRuleObjectDialog.cs
- MemberInfoSerializationHolder.cs
- SaveFileDialog.cs
- ToolStripRendererSwitcher.cs
- StylusPointPropertyUnit.cs
- InfoCardSymmetricAlgorithm.cs
- ObjectStateFormatter.cs
- XamlGridLengthSerializer.cs
- DoubleAnimationUsingPath.cs
- ScrollEventArgs.cs
- CheckBoxList.cs
- AccessibleObject.cs
- ItemsControlAutomationPeer.cs
- invalidudtexception.cs
- X509UI.cs
- WebPartTransformer.cs
- EmptyEnumerator.cs
- Util.cs
- WebScriptEndpointElement.cs
- TransmissionStrategy.cs
- DeclaredTypeValidator.cs
- Viewport3DVisual.cs
- ParameterCollection.cs
- HelloMessageCD1.cs
- DomainUpDown.cs
- ProcessingInstructionAction.cs
- LassoHelper.cs
- KeyboardDevice.cs
- SpotLight.cs
- IndicFontClient.cs
- XmlObjectSerializer.cs
- WaitForChangedResult.cs
- UnconditionalPolicy.cs
- DbParameterCollection.cs
- SqlDataSourceStatusEventArgs.cs
- PropertyGeneratedEventArgs.cs
- BinHexEncoder.cs
- Win32.cs
- DataGridTextBoxColumn.cs
- DivideByZeroException.cs
- ChannelHandler.cs
- RuntimeIdentifierPropertyAttribute.cs
- CodeTypeDeclaration.cs
- LayoutEditorPart.cs
- ToolZone.cs
- HtmlInputText.cs
- Span.cs
- MemoryRecordBuffer.cs
- SerialReceived.cs
- _AutoWebProxyScriptHelper.cs
- ComAdminInterfaces.cs
- XmlNamespaceManager.cs
- DbProviderFactoriesConfigurationHandler.cs
- CustomErrorsSection.cs
- RegisteredDisposeScript.cs
- RadioButtonList.cs
- QuaternionValueSerializer.cs
- TimeSpanOrInfiniteConverter.cs
- LongSumAggregationOperator.cs
- _ConnectStream.cs
- ErrorStyle.cs
- UserControl.cs
- NamedPipeChannelListener.cs
- ListViewCommandEventArgs.cs
- MembershipSection.cs
- EdmToObjectNamespaceMap.cs
- wgx_render.cs
- TransformProviderWrapper.cs
- WaitHandleCannotBeOpenedException.cs
- Stack.cs
- CompilerWrapper.cs
- RangeBase.cs
- DateBoldEvent.cs
- Renderer.cs
- BulletedListEventArgs.cs
- ProfileSection.cs
- DrawingDrawingContext.cs
- DuplicateWaitObjectException.cs
- AvTraceDetails.cs
- SoapSchemaImporter.cs
- PersistenceProviderDirectory.cs
- SqlInternalConnectionSmi.cs
- GlobalizationAssembly.cs
- Soap.cs
- OperandQuery.cs
- XmlAttribute.cs
- RelatedEnd.cs
- Point4DValueSerializer.cs
- SettingsBindableAttribute.cs
- OleStrCAMarshaler.cs
- ClientSideProviderDescription.cs
- FacetValueContainer.cs
- HttpRuntimeSection.cs
- SqlSelectStatement.cs
- StorageAssociationTypeMapping.cs
- ExtensionWindow.cs
- ObjectContext.cs