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
- ChannelManager.cs
- EqualityComparer.cs
- CodeEventReferenceExpression.cs
- CompositeActivityTypeDescriptorProvider.cs
- CommonDialog.cs
- sqlstateclientmanager.cs
- AstTree.cs
- SchemaDeclBase.cs
- ResourcePart.cs
- WhitespaceRule.cs
- ConcurrencyMode.cs
- PublishLicense.cs
- SharedConnectionListener.cs
- FontUnit.cs
- FileDialog_Vista.cs
- DataDocumentXPathNavigator.cs
- WpfKnownTypeInvoker.cs
- FileFormatException.cs
- XsltConvert.cs
- CfgParser.cs
- FlowLayoutSettings.cs
- ToolStripSystemRenderer.cs
- FontFamily.cs
- _AutoWebProxyScriptEngine.cs
- autovalidator.cs
- ProcessingInstructionAction.cs
- NativeObjectSecurity.cs
- ImageField.cs
- LocalServiceSecuritySettings.cs
- SystemIPv6InterfaceProperties.cs
- XmlHierarchicalDataSourceView.cs
- InternalCache.cs
- AttachedPropertyBrowsableAttribute.cs
- ScrollItemPatternIdentifiers.cs
- Hash.cs
- HtmlMeta.cs
- FixedSOMLineCollection.cs
- _ShellExpression.cs
- LogWriteRestartAreaState.cs
- HttpListenerPrefixCollection.cs
- Baml2006ReaderFrame.cs
- TextBoxView.cs
- ToolStripSystemRenderer.cs
- IconConverter.cs
- ViewRendering.cs
- ToolStripRenderEventArgs.cs
- ServiceEndpointAssociationProvider.cs
- SecurityRuntime.cs
- ProfileProvider.cs
- CodeTypeDelegate.cs
- TokenizerHelper.cs
- TextEditorThreadLocalStore.cs
- DetectRunnableInstancesTask.cs
- Update.cs
- TableParaClient.cs
- MouseButton.cs
- PropertyEntry.cs
- QilGeneratorEnv.cs
- MachineKeyConverter.cs
- GetPageNumberCompletedEventArgs.cs
- ToolStripDropDownClosedEventArgs.cs
- FieldCollectionEditor.cs
- _NetRes.cs
- AdornerLayer.cs
- ForceCopyBuildProvider.cs
- Update.cs
- SHA1Managed.cs
- SQLDoubleStorage.cs
- DefaultEventAttribute.cs
- PageSetupDialog.cs
- CompilerLocalReference.cs
- BooleanSwitch.cs
- DataControlFieldHeaderCell.cs
- TraceSource.cs
- Iis7Helper.cs
- ControlSerializer.cs
- SR.cs
- AuthenticationManager.cs
- CaretElement.cs
- TableLayoutStyle.cs
- PropertyStore.cs
- Point3D.cs
- FacetValues.cs
- XmlWriterSettings.cs
- X509ChainPolicy.cs
- ToolStripButton.cs
- WebBrowser.cs
- GACMembershipCondition.cs
- Calendar.cs
- BCLDebug.cs
- RotateTransform3D.cs
- ActivityStateRecord.cs
- MULTI_QI.cs
- TextSelectionHelper.cs
- RowToFieldTransformer.cs
- SqlClientMetaDataCollectionNames.cs
- UnmanagedMemoryStream.cs
- SuppressMessageAttribute.cs
- CircleHotSpot.cs
- RepeaterItemEventArgs.cs