Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / CacheMode.cs / 1305600 / CacheMode.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2008 // // File: CacheMode.cs //----------------------------------------------------------------------------- using System.ComponentModel; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { public abstract partial class CacheMode { internal CacheMode () { } ////// Parse - this method is called by the type converter to parse a CacheMode's string /// (provided in "value"). /// ////// A CacheMode which was created by parsing the "value" argument. /// /// String representation of a CacheMode. Cannot be null/empty. internal static CacheMode Parse(string value) { CacheMode cacheMode = null; if (value == "BitmapCache") { cacheMode = new BitmapCache(); } else { throw new FormatException(SR.Get(SRID.Parsers_IllegalToken)); } return cacheMode; } ////// Can serialze "this" to a string /// internal virtual bool CanSerializeToString() { return false; } internal virtual string ConvertToString(string format, IFormatProvider provider) { return base.ToString(); } } } // 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
- GridViewRowPresenterBase.cs
- SafeFileHandle.cs
- FormView.cs
- XsdDateTime.cs
- RegisteredDisposeScript.cs
- Vector.cs
- SoapHttpTransportImporter.cs
- ApplicationId.cs
- BooleanExpr.cs
- NavigationExpr.cs
- RuntimeCompatibilityAttribute.cs
- ThemeableAttribute.cs
- Tokenizer.cs
- PropertyCondition.cs
- OrderedDictionaryStateHelper.cs
- StickyNote.cs
- BaseUriHelper.cs
- DbDataSourceEnumerator.cs
- HostProtectionPermission.cs
- DataListCommandEventArgs.cs
- WorkerProcess.cs
- PartialCachingAttribute.cs
- ProfileSection.cs
- NegotiationTokenAuthenticatorState.cs
- CollectionChangeEventArgs.cs
- TextSelectionProcessor.cs
- NativeMethods.cs
- ToolBarButtonClickEvent.cs
- HttpContext.cs
- UpdatePanel.cs
- QilCloneVisitor.cs
- SafeLibraryHandle.cs
- PixelShader.cs
- Mappings.cs
- ManagedWndProcTracker.cs
- DocumentXmlWriter.cs
- PolyLineSegmentFigureLogic.cs
- UserControl.cs
- RenderCapability.cs
- SafeTimerHandle.cs
- AudioDeviceOut.cs
- PhysicalFontFamily.cs
- AutomationElement.cs
- Matrix3D.cs
- DataServiceExpressionVisitor.cs
- TraceSection.cs
- KeyedByTypeCollection.cs
- PrinterSettings.cs
- documentsequencetextview.cs
- SyncOperationState.cs
- ErrorTolerantObjectWriter.cs
- JavascriptCallbackMessageInspector.cs
- NavigationService.cs
- TableLayout.cs
- ConnectionOrientedTransportManager.cs
- Point.cs
- CodePrimitiveExpression.cs
- SettingsAttributes.cs
- TrustVersion.cs
- SafePEFileHandle.cs
- DetailsViewPagerRow.cs
- TextureBrush.cs
- SchemaNamespaceManager.cs
- MobilePage.cs
- GridPatternIdentifiers.cs
- TypeUsage.cs
- Inflater.cs
- CustomServiceCredentials.cs
- DataControlLinkButton.cs
- Maps.cs
- GraphicsState.cs
- OrderedDictionaryStateHelper.cs
- PropertyCollection.cs
- GeometryHitTestResult.cs
- WebPartPersonalization.cs
- WindowsListViewItemCheckBox.cs
- ComponentChangedEvent.cs
- ReadOnlyAttribute.cs
- FileLoadException.cs
- HandleCollector.cs
- WebPartConnectionsCancelVerb.cs
- RemoteWebConfigurationHostStream.cs
- OptimizedTemplateContent.cs
- DataBindingHandlerAttribute.cs
- PresentationAppDomainManager.cs
- RegexCharClass.cs
- SoapFormatter.cs
- Padding.cs
- PerformanceCounterPermissionEntry.cs
- SqlCacheDependencySection.cs
- CalculatedColumn.cs
- SchemaSetCompiler.cs
- DbDataRecord.cs
- DetailsViewUpdatedEventArgs.cs
- HtmlElementCollection.cs
- TokenizerHelper.cs
- TextEditorMouse.cs
- FunctionImportElement.cs
- Int64Animation.cs
- ToolTip.cs