Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CodeSnippetCompileUnit.cs
- AppDomain.cs
- _BasicClient.cs
- XmlSchemaSet.cs
- ClientScriptManager.cs
- HashAlgorithm.cs
- PolyBezierSegment.cs
- MdiWindowListItemConverter.cs
- ScopeCompiler.cs
- DependencyObjectProvider.cs
- ImpersonateTokenRef.cs
- BaseTreeIterator.cs
- StrokeCollection2.cs
- ConfigXmlCDataSection.cs
- ExtensionFile.cs
- TextEditorParagraphs.cs
- PointAnimationUsingKeyFrames.cs
- FunctionNode.cs
- ClearTypeHintValidation.cs
- ApplicationGesture.cs
- TimeStampChecker.cs
- EdmEntityTypeAttribute.cs
- ReadOnlyPropertyMetadata.cs
- ManipulationDeltaEventArgs.cs
- Condition.cs
- CatalogZoneDesigner.cs
- ObjectDisposedException.cs
- _NestedSingleAsyncResult.cs
- Speller.cs
- BitmapMetadata.cs
- ElementHostPropertyMap.cs
- StatusBarItemAutomationPeer.cs
- RenameRuleObjectDialog.cs
- VersionPair.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- ExpressionBuilderCollection.cs
- WindowsScrollBarBits.cs
- CatalogZoneBase.cs
- NavigationWindow.cs
- NoneExcludedImageIndexConverter.cs
- VirtualDirectoryMapping.cs
- CacheChildrenQuery.cs
- PageVisual.cs
- RouteCollection.cs
- InsufficientExecutionStackException.cs
- KnownTypesHelper.cs
- DesignerLabelAdapter.cs
- DetailsViewDeleteEventArgs.cs
- FilteredDataSetHelper.cs
- ObjectViewFactory.cs
- Brush.cs
- EtwTrackingBehavior.cs
- WebBrowser.cs
- SymmetricAlgorithm.cs
- StreamGeometry.cs
- BufferBuilder.cs
- TransactionException.cs
- DebugHandleTracker.cs
- ObjectDataProvider.cs
- AppManager.cs
- elementinformation.cs
- ISAPIRuntime.cs
- SystemColors.cs
- BamlRecords.cs
- Or.cs
- XmlSiteMapProvider.cs
- XmlSchemaNotation.cs
- FragmentQueryProcessor.cs
- ObjectCloneHelper.cs
- DefaultSerializationProviderAttribute.cs
- HtmlTableRowCollection.cs
- basemetadatamappingvisitor.cs
- PropertyGeneratedEventArgs.cs
- DiagnosticsConfiguration.cs
- SaveFileDialog.cs
- MessageQueueConverter.cs
- QilPatternFactory.cs
- NullReferenceException.cs
- WindowsTreeView.cs
- Stream.cs
- ToolStripSystemRenderer.cs
- MeasureData.cs
- InvokeBase.cs
- SamlEvidence.cs
- SafeRegistryHandle.cs
- DropShadowBitmapEffect.cs
- ConfigXmlComment.cs
- XhtmlBasicLabelAdapter.cs
- TransformConverter.cs
- XmlSchemaAttributeGroupRef.cs
- RegisteredExpandoAttribute.cs
- HostDesigntimeLicenseContext.cs
- ImageAutomationPeer.cs
- TypeConverterHelper.cs
- EntityEntry.cs
- UnitySerializationHolder.cs
- TickBar.cs
- MimeImporter.cs
- EUCJPEncoding.cs
- BrowserCapabilitiesCodeGenerator.cs