Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / CachingHintValidation.cs / 1 / CachingHintValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsCachingHintValid(object valueObject) { CachingHint value = (CachingHint) valueObject; return (value == CachingHint.Unspecified) || (value == CachingHint.Cache); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows.Media { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsCachingHintValid(object valueObject) { CachingHint value = (CachingHint) valueObject; return (value == CachingHint.Unspecified) || (value == CachingHint.Cache); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Highlights.cs
- CellParaClient.cs
- TemplateNameScope.cs
- QueueProcessor.cs
- Baml2006KnownTypes.cs
- RightsManagementEncryptionTransform.cs
- OrderByQueryOptionExpression.cs
- WorkerRequest.cs
- TdsRecordBufferSetter.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SystemPens.cs
- HtmlTableRow.cs
- ToolboxComponentsCreatedEventArgs.cs
- HeaderElement.cs
- DataComponentNameHandler.cs
- DataGridPagerStyle.cs
- ListViewDataItem.cs
- Bezier.cs
- EntitySqlQueryCacheEntry.cs
- BrowserCapabilitiesFactory.cs
- PageOrientation.cs
- ObjectDataSourceEventArgs.cs
- ZipIOExtraFieldElement.cs
- Helper.cs
- TextElementEnumerator.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlWellformedWriter.cs
- DataPagerFieldCollection.cs
- ApplicationSettingsBase.cs
- RelOps.cs
- Monitor.cs
- UpdatePanelTriggerCollection.cs
- Size3D.cs
- Calendar.cs
- DisposableCollectionWrapper.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- xsdvalidator.cs
- SimplePropertyEntry.cs
- InternalBufferManager.cs
- XmlDownloadManager.cs
- CodeGen.cs
- CodeTypeMember.cs
- ImpersonateTokenRef.cs
- QueryCacheKey.cs
- ConnectionConsumerAttribute.cs
- SessionState.cs
- Geometry3D.cs
- XmlConverter.cs
- PageClientProxyGenerator.cs
- AsymmetricSignatureDeformatter.cs
- UIElement.cs
- EventProviderWriter.cs
- SoapHelper.cs
- XpsPackagingPolicy.cs
- ParallelTimeline.cs
- WebResourceUtil.cs
- WorkflowOperationAsyncResult.cs
- MethodRental.cs
- Parallel.cs
- AuthorizationRule.cs
- DeviceSpecificChoice.cs
- XmlSchemaParticle.cs
- InstanceLockException.cs
- DynamicQueryableWrapper.cs
- AddValidationError.cs
- FactoryId.cs
- Literal.cs
- HttpException.cs
- Win32Native.cs
- CqlLexerHelpers.cs
- DoubleConverter.cs
- ComplexLine.cs
- MonitoringDescriptionAttribute.cs
- WorkflowRuntimeServiceElement.cs
- CryptoConfig.cs
- SettingsContext.cs
- _LazyAsyncResult.cs
- JavaScriptObjectDeserializer.cs
- InstanceNameConverter.cs
- RequestValidator.cs
- ServiceActivationException.cs
- WindowsEditBox.cs
- ResourcesChangeInfo.cs
- AttributeProviderAttribute.cs
- GridViewEditEventArgs.cs
- FixedDocument.cs
- PeerNameRegistration.cs
- ProcessModelInfo.cs
- FixedPageProcessor.cs
- SignerInfo.cs
- DesignerCategoryAttribute.cs
- DecoderReplacementFallback.cs
- SqlErrorCollection.cs
- SafeRegistryHandle.cs
- MD5CryptoServiceProvider.cs
- BaseDataListActionList.cs
- XpsManager.cs
- CounterCreationDataCollection.cs
- RSAPKCS1SignatureFormatter.cs
- SymmetricAlgorithm.cs