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
- ToolStripRenderer.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- BuildResult.cs
- Int32Storage.cs
- SoapSchemaMember.cs
- WindowsAuthenticationModule.cs
- AdRotator.cs
- SqlUtil.cs
- ObjectComplexPropertyMapping.cs
- SqlDataSource.cs
- InternalDispatchObject.cs
- SystemMulticastIPAddressInformation.cs
- ApplySecurityAndSendAsyncResult.cs
- RichTextBoxDesigner.cs
- GetWinFXPath.cs
- DataControlFieldHeaderCell.cs
- FileReader.cs
- NonSerializedAttribute.cs
- DataKeyPropertyAttribute.cs
- EmbossBitmapEffect.cs
- ToolboxItemImageConverter.cs
- WebPartTransformer.cs
- PenContexts.cs
- WinEventQueueItem.cs
- RemoteWebConfigurationHostServer.cs
- DllNotFoundException.cs
- DesignerForm.cs
- GcHandle.cs
- DataBoundLiteralControl.cs
- WebEvents.cs
- VectorCollectionValueSerializer.cs
- Currency.cs
- ArglessEventHandlerProxy.cs
- EtwTrace.cs
- QueryableDataSource.cs
- FontSourceCollection.cs
- TypeFieldSchema.cs
- DataGridViewBand.cs
- PageSetupDialog.cs
- CustomError.cs
- PolicyLevel.cs
- WebPartEditorOkVerb.cs
- ViewEvent.cs
- IssuanceLicense.cs
- _LoggingObject.cs
- SequenceDesigner.cs
- GenericAuthenticationEventArgs.cs
- DLinqDataModelProvider.cs
- TextSelectionHelper.cs
- datacache.cs
- CutCopyPasteHelper.cs
- FrameworkRichTextComposition.cs
- GridItemPatternIdentifiers.cs
- IntranetCredentialPolicy.cs
- AnnotationDocumentPaginator.cs
- ExpressionBuilder.cs
- ViewSimplifier.cs
- TreeChangeInfo.cs
- ScanQueryOperator.cs
- DockPatternIdentifiers.cs
- RouteValueDictionary.cs
- ScopelessEnumAttribute.cs
- LocatorPart.cs
- CroppedBitmap.cs
- StorageAssociationTypeMapping.cs
- VisualStyleElement.cs
- metadatamappinghashervisitor.cs
- EncryptedType.cs
- DispatcherExceptionEventArgs.cs
- TransformedBitmap.cs
- ScrollContentPresenter.cs
- UserControlBuildProvider.cs
- Maps.cs
- ScriptResourceDefinition.cs
- URIFormatException.cs
- AttributeParameterInfo.cs
- SqlStream.cs
- X509Logo.cs
- PassportPrincipal.cs
- RIPEMD160.cs
- ImageCodecInfo.cs
- CodeSubDirectoriesCollection.cs
- Version.cs
- WindowsScrollBarBits.cs
- AppDomainAttributes.cs
- XPathParser.cs
- DocumentNUp.cs
- SelectorAutomationPeer.cs
- HostDesigntimeLicenseContext.cs
- WindowsPen.cs
- PixelFormatConverter.cs
- OrderingExpression.cs
- FileRegion.cs
- WebPartDeleteVerb.cs
- PageDeviceFont.cs
- AppSecurityManager.cs
- RepeaterCommandEventArgs.cs
- NotImplementedException.cs
- CancellationTokenSource.cs
- StatusBar.cs