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
- TrimSurroundingWhitespaceAttribute.cs
- ColumnProvider.cs
- UserControlAutomationPeer.cs
- ConfigurationStrings.cs
- GenericWebPart.cs
- CustomAssemblyResolver.cs
- SizeKeyFrameCollection.cs
- DragDrop.cs
- ReferenceTypeElement.cs
- RichTextBoxConstants.cs
- BindingCompleteEventArgs.cs
- ProfileWorkflowElement.cs
- UnionExpr.cs
- HttpResponseInternalBase.cs
- XmlSchemaInfo.cs
- SafeProcessHandle.cs
- XAMLParseException.cs
- HashHelper.cs
- RuntimeWrappedException.cs
- TrustDriver.cs
- AuthenticationService.cs
- PresentationSource.cs
- Win32Exception.cs
- NavigationPropertyAccessor.cs
- OdbcDataAdapter.cs
- XmlSchemaSimpleType.cs
- odbcmetadatacollectionnames.cs
- XmlSchemaObject.cs
- _StreamFramer.cs
- StylusShape.cs
- ByteStorage.cs
- SerializerDescriptor.cs
- FullTextBreakpoint.cs
- Exception.cs
- Brush.cs
- HttpHandlerAction.cs
- RtfToXamlLexer.cs
- NavigateEvent.cs
- ValueProviderWrapper.cs
- XmlText.cs
- SafeNativeMethodsMilCoreApi.cs
- InputDevice.cs
- CodeTypeMemberCollection.cs
- DiscardableAttribute.cs
- HealthMonitoringSectionHelper.cs
- CompositeFontInfo.cs
- PolygonHotSpot.cs
- DLinqDataModelProvider.cs
- SHA256CryptoServiceProvider.cs
- MasterPageCodeDomTreeGenerator.cs
- ButtonRenderer.cs
- StateManagedCollection.cs
- FocusChangedEventArgs.cs
- FormClosedEvent.cs
- VolatileEnlistmentState.cs
- UserUseLicenseDictionaryLoader.cs
- EventWaitHandle.cs
- Model3D.cs
- AccessibilityHelperForVista.cs
- WhitespaceRuleReader.cs
- TailPinnedEventArgs.cs
- FlowDocumentPaginator.cs
- UnmanagedMemoryStream.cs
- BamlLocalizableResourceKey.cs
- WSSecureConversation.cs
- InternalBufferManager.cs
- WindowsFormsHostAutomationPeer.cs
- EventData.cs
- RowToFieldTransformer.cs
- FormViewPageEventArgs.cs
- PhysicalOps.cs
- UnsafeNativeMethods.cs
- StackBuilderSink.cs
- OracleTimeSpan.cs
- PtsHost.cs
- LocatorManager.cs
- CreationContext.cs
- ClientSponsor.cs
- MSHTMLHost.cs
- GC.cs
- SerializationFieldInfo.cs
- CSharpCodeProvider.cs
- GradientStopCollection.cs
- DataGridPagerStyle.cs
- DiagnosticTrace.cs
- BinaryUtilClasses.cs
- XPathLexer.cs
- CollectionsUtil.cs
- odbcmetadatacolumnnames.cs
- FamilyMap.cs
- ColumnResizeAdorner.cs
- ISO2022Encoding.cs
- BindingContext.cs
- LogManagementAsyncResult.cs
- COM2PropertyDescriptor.cs
- MultiView.cs
- DataSourceConverter.cs
- WmiPutTraceRecord.cs
- BitmapSource.cs
- HatchBrush.cs