Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / mediaeventargs.cs / 1305600 / 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
- UIElement.cs
- TextViewBase.cs
- _DynamicWinsockMethods.cs
- IDispatchConstantAttribute.cs
- ToolBarDesigner.cs
- LogStream.cs
- UnmanagedMemoryStream.cs
- ObjectContextServiceProvider.cs
- RawKeyboardInputReport.cs
- TableHeaderCell.cs
- Marshal.cs
- ComEventsMethod.cs
- ToolboxItemCollection.cs
- CodeVariableDeclarationStatement.cs
- MasterPageBuildProvider.cs
- DirectoryObjectSecurity.cs
- Positioning.cs
- AdPostCacheSubstitution.cs
- ActivationWorker.cs
- SplitterCancelEvent.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- DataViewManager.cs
- RegionIterator.cs
- ApplicationInfo.cs
- Int32EqualityComparer.cs
- OrderedEnumerableRowCollection.cs
- Visual3D.cs
- OrderByBuilder.cs
- AutomationPatternInfo.cs
- PolyQuadraticBezierSegment.cs
- PtsHelper.cs
- BinaryObjectInfo.cs
- FontCacheUtil.cs
- MasterPageParser.cs
- SoapMessage.cs
- ButtonPopupAdapter.cs
- ReservationNotFoundException.cs
- WebPartConnectionsEventArgs.cs
- XmlSchemaInferenceException.cs
- WpfKnownTypeInvoker.cs
- XmlAttributeCache.cs
- FactoryGenerator.cs
- ComponentEvent.cs
- EntityExpressionVisitor.cs
- AnnotationElement.cs
- X509Utils.cs
- UriSchemeKeyedCollection.cs
- HuffModule.cs
- FontFamilyConverter.cs
- CallbackHandler.cs
- ThaiBuddhistCalendar.cs
- XmlSortKey.cs
- ExecutionContext.cs
- ServiceReference.cs
- Registry.cs
- Tile.cs
- Font.cs
- CalendarDesigner.cs
- OdbcRowUpdatingEvent.cs
- UserValidatedEventArgs.cs
- TextProperties.cs
- _WebProxyDataBuilder.cs
- XmlSchemaAnnotated.cs
- WebResourceAttribute.cs
- SqlFileStream.cs
- HorizontalAlignConverter.cs
- CallbackHandler.cs
- BulletedList.cs
- InputScope.cs
- PersistenceProviderFactory.cs
- SimpleRecyclingCache.cs
- Cell.cs
- FlowDocumentReaderAutomationPeer.cs
- EditorPart.cs
- CapabilitiesAssignment.cs
- WebPartVerb.cs
- CmsInterop.cs
- BrushValueSerializer.cs
- DiscoveryReferences.cs
- SmiEventSink_DeferedProcessing.cs
- ImageInfo.cs
- TabletCollection.cs
- Compress.cs
- MenuScrollingVisibilityConverter.cs
- SystemSounds.cs
- PageAsyncTaskManager.cs
- ReadOnlyDataSource.cs
- CodeArrayIndexerExpression.cs
- SafeFileHandle.cs
- WindowsGraphicsCacheManager.cs
- GridItem.cs
- Models.cs
- DocumentGridContextMenu.cs
- ProtectedUri.cs
- RealizationDrawingContextWalker.cs
- SymLanguageType.cs
- ButtonFieldBase.cs
- ConfigurationValues.cs
- ExpressionBuilder.cs
- FileInfo.cs