Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- KeyNotFoundException.cs
- ObjectResult.cs
- SafeNativeMethods.cs
- ServiceSecurityAuditElement.cs
- DynamicResourceExtensionConverter.cs
- AdobeCFFWrapper.cs
- XmlNodeChangedEventManager.cs
- AuthorizationPolicyTypeElementCollection.cs
- ClientTarget.cs
- SequentialUshortCollection.cs
- XsltArgumentList.cs
- ThrowHelper.cs
- LayoutEngine.cs
- HitTestFilterBehavior.cs
- BindToObject.cs
- DataGridColumn.cs
- CaseInsensitiveHashCodeProvider.cs
- HostedAspNetEnvironment.cs
- ArithmeticException.cs
- Animatable.cs
- HandleExceptionArgs.cs
- BitmapEffectInput.cs
- LinkTarget.cs
- XmlTypeMapping.cs
- PasswordRecovery.cs
- DesignTimeDataBinding.cs
- ListViewContainer.cs
- FilePrompt.cs
- GeometryHitTestParameters.cs
- ObjectQueryExecutionPlan.cs
- SerializationTrace.cs
- UpdateExpressionVisitor.cs
- DataQuery.cs
- DBNull.cs
- DataControlButton.cs
- TextEditorThreadLocalStore.cs
- EndCreateSecurityTokenRequest.cs
- BinaryObjectReader.cs
- PointLight.cs
- NumericUpDownAccelerationCollection.cs
- ProfessionalColors.cs
- Enum.cs
- TableLayoutStyle.cs
- EditingCoordinator.cs
- VersionedStreamOwner.cs
- DataSourceHelper.cs
- ErrorBehavior.cs
- ResourcePermissionBaseEntry.cs
- RightsManagementPermission.cs
- CompilerWrapper.cs
- CompiledRegexRunner.cs
- RepeaterCommandEventArgs.cs
- SymbolMethod.cs
- XmlSchemaCompilationSettings.cs
- CompilerParameters.cs
- TreeViewDataItemAutomationPeer.cs
- System.Data.OracleClient_BID.cs
- BrushConverter.cs
- columnmapkeybuilder.cs
- DesignSurfaceServiceContainer.cs
- ScriptingProfileServiceSection.cs
- ApplicationHost.cs
- DynamicValueConverter.cs
- ContourSegment.cs
- loginstatus.cs
- RegexBoyerMoore.cs
- GridItem.cs
- activationcontext.cs
- StringArrayEditor.cs
- DataGridViewRowEventArgs.cs
- MulticastOption.cs
- CapabilitiesPattern.cs
- AssertFilter.cs
- OracleParameter.cs
- PublishLicense.cs
- ErrorsHelper.cs
- EventMap.cs
- SectionVisual.cs
- NamespaceInfo.cs
- WindowsListBox.cs
- AssemblySettingAttributes.cs
- DataControlFieldCell.cs
- QueryReaderSettings.cs
- WebPageTraceListener.cs
- EncoderNLS.cs
- KeyValueConfigurationCollection.cs
- InputLanguageManager.cs
- EdmProperty.cs
- SourceItem.cs
- XamlReader.cs
- PointAnimationUsingPath.cs
- LocalizationParserHooks.cs
- ToolBarButtonDesigner.cs
- LinkedList.cs
- SiteMapNode.cs
- TagPrefixCollection.cs
- MessageSmuggler.cs
- LinkedResource.cs
- SatelliteContractVersionAttribute.cs
- ThemeDirectoryCompiler.cs