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
- ViewKeyConstraint.cs
- FontStyleConverter.cs
- BuildProviderCollection.cs
- SerializationInfoEnumerator.cs
- WebZone.cs
- VectorAnimationUsingKeyFrames.cs
- CodeConditionStatement.cs
- FailedToStartupUIException.cs
- CategoryGridEntry.cs
- MsmqReceiveHelper.cs
- Action.cs
- NegotiateStream.cs
- GlobalId.cs
- OleDbErrorCollection.cs
- XmlHierarchicalEnumerable.cs
- ExpandSegmentCollection.cs
- VisualStyleTypesAndProperties.cs
- DataTableReaderListener.cs
- CompressionTransform.cs
- ObjectQueryState.cs
- AsyncCompletedEventArgs.cs
- ThreadPool.cs
- XmlSchemaObjectTable.cs
- Metadata.cs
- SimpleModelProvider.cs
- DataGridViewAutoSizeModeEventArgs.cs
- BindingsCollection.cs
- BitmapEffectGroup.cs
- PolicyUtility.cs
- NumberSubstitution.cs
- SqlTriggerContext.cs
- SpeakCompletedEventArgs.cs
- InternalPolicyElement.cs
- MessageBox.cs
- WeakRefEnumerator.cs
- ConnectionManagementElementCollection.cs
- SamlSerializer.cs
- Semaphore.cs
- InkCanvasSelectionAdorner.cs
- ActivityCollectionMarkupSerializer.cs
- FormParameter.cs
- ProgressiveCrcCalculatingStream.cs
- DrawingGroupDrawingContext.cs
- FileUtil.cs
- ObjectManager.cs
- MethodRental.cs
- GrammarBuilder.cs
- AssertSection.cs
- XmlSerializerNamespaces.cs
- CollectionsUtil.cs
- StatusBarDrawItemEvent.cs
- TrackingDataItemValue.cs
- TraceUtils.cs
- ToolStripSeparatorRenderEventArgs.cs
- CacheAxisQuery.cs
- RC2CryptoServiceProvider.cs
- CleanUpVirtualizedItemEventArgs.cs
- WebBrowserDocumentCompletedEventHandler.cs
- RoutedEventValueSerializer.cs
- DrawingContext.cs
- PenContexts.cs
- SessionEndedEventArgs.cs
- WebPartTransformerAttribute.cs
- ToolStripSettings.cs
- SpecialNameAttribute.cs
- CalendarDataBindingHandler.cs
- TdsParserHelperClasses.cs
- Sql8ExpressionRewriter.cs
- HttpListenerContext.cs
- Keywords.cs
- AsymmetricKeyExchangeDeformatter.cs
- GroupQuery.cs
- VirtualDirectoryMapping.cs
- SQLInt64.cs
- ScriptControlManager.cs
- EntityCollection.cs
- LinqDataSource.cs
- ReliableChannelBinder.cs
- UnhandledExceptionEventArgs.cs
- ExceptionAggregator.cs
- PerformanceCounter.cs
- Win32KeyboardDevice.cs
- XPathEmptyIterator.cs
- SrgsDocumentParser.cs
- HitTestFilterBehavior.cs
- MouseCaptureWithinProperty.cs
- TextChange.cs
- LockedAssemblyCache.cs
- UniqueEventHelper.cs
- BitmapEffectState.cs
- RowToParametersTransformer.cs
- ExecutionContext.cs
- RepeaterItem.cs
- LogRestartAreaEnumerator.cs
- UserPreferenceChangingEventArgs.cs
- TrackingLocation.cs
- VersionPair.cs
- ModulesEntry.cs
- ToolStripPanelRow.cs
- Selection.cs