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
- DataFormats.cs
- SectionRecord.cs
- PerfService.cs
- FontConverter.cs
- Types.cs
- SiteOfOriginPart.cs
- ValidationErrorCollection.cs
- OleDbException.cs
- ComplexBindingPropertiesAttribute.cs
- AdPostCacheSubstitution.cs
- DataGridTextColumn.cs
- RadioButton.cs
- NativeMethodsCLR.cs
- ToolStripContextMenu.cs
- XmlFileEditor.cs
- X509Certificate2.cs
- DataGridCaption.cs
- ThreadAttributes.cs
- AudioSignalProblemOccurredEventArgs.cs
- SecurityKeyIdentifierClause.cs
- PropertyDescriptorGridEntry.cs
- XmlMembersMapping.cs
- XmlSchemaException.cs
- MessageDecoder.cs
- Tracer.cs
- DataBoundControlAdapter.cs
- RecordConverter.cs
- InvokeProviderWrapper.cs
- DataServiceRequestArgs.cs
- QilScopedVisitor.cs
- WorkflowServiceAttributesTypeConverter.cs
- DataServiceBehavior.cs
- NativeMethodsOther.cs
- CharacterString.cs
- XPathBinder.cs
- KeyValueConfigurationCollection.cs
- UrlPropertyAttribute.cs
- NetworkStream.cs
- BlockUIContainer.cs
- ToolStripAdornerWindowService.cs
- X509Certificate2.cs
- Win32KeyboardDevice.cs
- FlowDocumentPaginator.cs
- ToolboxItemWrapper.cs
- SequenceDesigner.cs
- CalendarDateRange.cs
- ArgumentsParser.cs
- DocumentProperties.cs
- Point4D.cs
- MembershipPasswordException.cs
- ButtonBaseAutomationPeer.cs
- FixedStringLookup.cs
- ColorDialog.cs
- HScrollProperties.cs
- SqlServices.cs
- ADMembershipProvider.cs
- TextWriterTraceListener.cs
- ServiceDurableInstance.cs
- QuaternionValueSerializer.cs
- PasswordBoxAutomationPeer.cs
- DoubleStorage.cs
- FilePresentation.cs
- InvalidDataException.cs
- AliasGenerator.cs
- FolderBrowserDialogDesigner.cs
- SqlMethodAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- WebPartDisplayModeCancelEventArgs.cs
- ProviderSettings.cs
- SessionParameter.cs
- Flattener.cs
- CloseCryptoHandleRequest.cs
- MetadataConversionError.cs
- _NetRes.cs
- PerformanceCounterCategory.cs
- SiteMapProvider.cs
- ContractAdapter.cs
- ToolboxItemAttribute.cs
- NGCPageContentCollectionSerializerAsync.cs
- CodeSubDirectory.cs
- SafeProcessHandle.cs
- VisualStyleInformation.cs
- sortedlist.cs
- GlyphElement.cs
- XmlRawWriter.cs
- ConfigurationLocation.cs
- XmlCodeExporter.cs
- DefaultValueTypeConverter.cs
- XsdDuration.cs
- IdentityReference.cs
- SchemaEntity.cs
- UserControlDesigner.cs
- TrackingProfile.cs
- DateTimeHelper.cs
- CompilerState.cs
- MailAddressParser.cs
- DataContractSerializerSection.cs
- ChannelServices.cs
- SignedPkcs7.cs
- ScriptingProfileServiceSection.cs