Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PermissionRequestEvidence.cs
- OrderByQueryOptionExpression.cs
- MoveSizeWinEventHandler.cs
- StylusPointPropertyId.cs
- SoapReflectionImporter.cs
- ContentType.cs
- SqlServices.cs
- GeneralTransformCollection.cs
- Exceptions.cs
- CriticalFinalizerObject.cs
- StylusCaptureWithinProperty.cs
- HwndProxyElementProvider.cs
- PeerEndPoint.cs
- XmlSchemaSubstitutionGroup.cs
- TokenBasedSet.cs
- HwndTarget.cs
- IdentifierCollection.cs
- RegexCompilationInfo.cs
- ObjectNavigationPropertyMapping.cs
- AppDomainUnloadedException.cs
- ObjectContextServiceProvider.cs
- BoundPropertyEntry.cs
- CodeNamespaceCollection.cs
- AutoGeneratedFieldProperties.cs
- Literal.cs
- ProcessThread.cs
- IndentedTextWriter.cs
- CodeIdentifiers.cs
- HyperLinkField.cs
- ResourcesChangeInfo.cs
- SpeechAudioFormatInfo.cs
- FrameDimension.cs
- WebCategoryAttribute.cs
- SimpleMailWebEventProvider.cs
- Floater.cs
- Point3DAnimationUsingKeyFrames.cs
- SmiXetterAccessMap.cs
- LogArchiveSnapshot.cs
- Win32.cs
- DockingAttribute.cs
- SqlServices.cs
- ProxyHelper.cs
- FillBehavior.cs
- ServiceThrottle.cs
- ErrorActivity.cs
- SessionStateUtil.cs
- ContourSegment.cs
- QilStrConcatenator.cs
- ObjectHandle.cs
- TabRenderer.cs
- ReachPrintTicketSerializerAsync.cs
- CompilationSection.cs
- Vector3DValueSerializer.cs
- SpellCheck.cs
- Compilation.cs
- ProtocolsConfiguration.cs
- HasCopySemanticsAttribute.cs
- unsafenativemethodstextservices.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ListViewCancelEventArgs.cs
- SafeMarshalContext.cs
- JavaScriptString.cs
- Vector3D.cs
- AnchoredBlock.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- TextControlDesigner.cs
- CommonRemoteMemoryBlock.cs
- ClassHandlersStore.cs
- initElementDictionary.cs
- ListViewUpdatedEventArgs.cs
- FormClosedEvent.cs
- Span.cs
- CompositeActivityTypeDescriptorProvider.cs
- PolyQuadraticBezierSegment.cs
- IPPacketInformation.cs
- BaseValidator.cs
- DataGridTable.cs
- Table.cs
- Select.cs
- CustomAttributeFormatException.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataFieldCollectionEditor.cs
- ButtonAutomationPeer.cs
- SymmetricAlgorithm.cs
- LongPath.cs
- PropertyValueChangedEvent.cs
- XmlSchemaInclude.cs
- Debug.cs
- FixedSOMGroup.cs
- PropagatorResult.cs
- TextBreakpoint.cs
- UniqueContractNameValidationBehavior.cs
- regiisutil.cs
- TextDpi.cs
- Logging.cs
- PrintEvent.cs
- Transform.cs
- FrameworkPropertyMetadata.cs
- RepeaterItemEventArgs.cs
- FormViewDeletedEventArgs.cs