Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / mediaeventargs.cs / 1 / mediaeventargs.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: mediaeventargs.cs // //----------------------------------------------------------------------------- using System; namespace System.Windows.Media { #region ExceptionEventArgs ////// arguments for media failure event handlers /// public sealed class ExceptionEventArgs : EventArgs { ////// Creates a new ExceptionEventArgs. /// /// Error Exception. internal ExceptionEventArgs(Exception errorException) : base() { if (errorException == null) { throw new ArgumentNullException("errorException"); } _errorException = errorException; } ////// Error Exception /// public Exception ErrorException { get { return _errorException; } } ////// Error exception data /// private Exception _errorException; }; #endregion #region MediaScriptCommandEventArgs ////// Arguments for any scripting commands associated with the media. /// public sealed class MediaScriptCommandEventArgs : EventArgs { ////// Creates a new MediaScriptCommandEventArgs. /// internal MediaScriptCommandEventArgs( string parameterType, string parameterValue ) : base() { if (parameterType == null) { throw new ArgumentNullException("parameterType"); } if (parameterValue == null) { throw new ArgumentNullException("parameterValue"); } _parameterType = parameterType; _parameterValue = parameterValue; } ////// The type of the script command. /// public String ParameterType { get { return _parameterType; } } ////// The parameter associated with the script command. /// public String ParameterValue { get { return _parameterValue; } } ////// The type of scripting command /// private string _parameterType; ////// The parameter associated with the script command. /// private string _parameterValue; } #endregion }; // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2003 // // File: mediaeventargs.cs // //----------------------------------------------------------------------------- using System; namespace System.Windows.Media { #region ExceptionEventArgs ////// arguments for media failure event handlers /// public sealed class ExceptionEventArgs : EventArgs { ////// Creates a new ExceptionEventArgs. /// /// Error Exception. internal ExceptionEventArgs(Exception errorException) : base() { if (errorException == null) { throw new ArgumentNullException("errorException"); } _errorException = errorException; } ////// Error Exception /// public Exception ErrorException { get { return _errorException; } } ////// Error exception data /// private Exception _errorException; }; #endregion #region MediaScriptCommandEventArgs ////// Arguments for any scripting commands associated with the media. /// public sealed class MediaScriptCommandEventArgs : EventArgs { ////// Creates a new MediaScriptCommandEventArgs. /// internal MediaScriptCommandEventArgs( string parameterType, string parameterValue ) : base() { if (parameterType == null) { throw new ArgumentNullException("parameterType"); } if (parameterValue == null) { throw new ArgumentNullException("parameterValue"); } _parameterType = parameterType; _parameterValue = parameterValue; } ////// The type of the script command. /// public String ParameterType { get { return _parameterType; } } ////// The parameter associated with the script command. /// public String ParameterValue { get { return _parameterValue; } } ////// The type of scripting command /// private string _parameterType; ////// The parameter associated with the script command. /// private string _parameterValue; } #endregion }; // 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
- CompilerState.cs
- PropertyGeneratedEventArgs.cs
- TemplateControl.cs
- FormatterConverter.cs
- DefinitionUpdate.cs
- Processor.cs
- FlatButtonAppearance.cs
- FreezableDefaultValueFactory.cs
- CreateRefExpr.cs
- ClientUtils.cs
- PropertyChangedEventArgs.cs
- UserControlCodeDomTreeGenerator.cs
- Int32Rect.cs
- ButtonChrome.cs
- ValidationErrorEventArgs.cs
- LocalizabilityAttribute.cs
- DetailsViewModeEventArgs.cs
- DiscoveryUtility.cs
- DrawingContextDrawingContextWalker.cs
- PerformanceCounters.cs
- SerializationFieldInfo.cs
- FormViewPageEventArgs.cs
- ControlAdapter.cs
- DataSourceGroupCollection.cs
- Selection.cs
- XmlSignificantWhitespace.cs
- UserMapPath.cs
- ExtensibleClassFactory.cs
- HttpCacheVaryByContentEncodings.cs
- WebPartEditVerb.cs
- ActivityPreviewDesigner.cs
- ManagementEventWatcher.cs
- ChangeInterceptorAttribute.cs
- ToolStripSeparatorRenderEventArgs.cs
- CacheAxisQuery.cs
- ProcessInputEventArgs.cs
- SecurityDocument.cs
- Brush.cs
- FrameworkTemplate.cs
- DSACryptoServiceProvider.cs
- LoggedException.cs
- CompModSwitches.cs
- NameNode.cs
- UdpMessageProperty.cs
- SafeNativeMethods.cs
- WebPartDescription.cs
- WebDisplayNameAttribute.cs
- HtmlShimManager.cs
- WindowsStatic.cs
- _ChunkParse.cs
- IOException.cs
- DataSourceControlBuilder.cs
- EdmFunction.cs
- DocumentOrderComparer.cs
- MetaData.cs
- PenThreadWorker.cs
- StylusOverProperty.cs
- SpellerStatusTable.cs
- QuestionEventArgs.cs
- PermissionToken.cs
- TraceLevelStore.cs
- TreeViewDesigner.cs
- IdleTimeoutMonitor.cs
- MiniConstructorInfo.cs
- JapaneseLunisolarCalendar.cs
- C14NUtil.cs
- ListViewInsertionMark.cs
- ValidationPropertyAttribute.cs
- InstanceHandleConflictException.cs
- JpegBitmapEncoder.cs
- GlyphTypeface.cs
- NameTable.cs
- ListControl.cs
- ConfigXmlText.cs
- BuildProviderAppliesToAttribute.cs
- HtmlTableCellCollection.cs
- DebugHandleTracker.cs
- DynamicPropertyHolder.cs
- AddressAccessDeniedException.cs
- TPLETWProvider.cs
- SchemaImporter.cs
- InputScopeAttribute.cs
- ScaleTransform.cs
- mda.cs
- TransformValueSerializer.cs
- InputLanguage.cs
- Repeater.cs
- KeyTime.cs
- X509Certificate.cs
- AdPostCacheSubstitution.cs
- Bidi.cs
- InvalidAsynchronousStateException.cs
- SemanticKeyElement.cs
- HuffCodec.cs
- ActivityDesignerLayoutSerializers.cs
- CodeIterationStatement.cs
- XmlSchemaSearchPattern.cs
- PersonalizationStateQuery.cs
- Triangle.cs
- RowToFieldTransformer.cs