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
- CollectionView.cs
- PackWebResponse.cs
- ClientConvert.cs
- AttachmentService.cs
- DataGridColumnCollection.cs
- ObjectListShowCommandsEventArgs.cs
- DropTarget.cs
- ModelVisual3D.cs
- TextFormatterImp.cs
- View.cs
- ExpressionBuilder.cs
- PassportAuthenticationEventArgs.cs
- SqlRecordBuffer.cs
- WebPart.cs
- DataStreams.cs
- StateMachine.cs
- XmlDataCollection.cs
- PaperSize.cs
- Image.cs
- RepeatBehavior.cs
- _ScatterGatherBuffers.cs
- HWStack.cs
- SqlBooleanMismatchVisitor.cs
- StyleSheetComponentEditor.cs
- SafeHandles.cs
- InternalUserCancelledException.cs
- ComplexLine.cs
- StreamUpgradeInitiator.cs
- Padding.cs
- GridItem.cs
- ConfigXmlText.cs
- RelatedCurrencyManager.cs
- DataRowChangeEvent.cs
- SinglePhaseEnlistment.cs
- DataComponentNameHandler.cs
- SoapIgnoreAttribute.cs
- Queue.cs
- MulticastDelegate.cs
- Funcletizer.cs
- BufferedGraphics.cs
- DataGridViewCheckBoxColumn.cs
- SplineKeyFrames.cs
- MexNamedPipeBindingCollectionElement.cs
- ImageList.cs
- MimeParameter.cs
- MarkupExtensionReturnTypeAttribute.cs
- HandleRef.cs
- BezierSegment.cs
- SystemGatewayIPAddressInformation.cs
- _FtpControlStream.cs
- ControlCachePolicy.cs
- assertwrapper.cs
- SafeSystemMetrics.cs
- Message.cs
- HeaderCollection.cs
- HitTestFilterBehavior.cs
- returneventsaver.cs
- TabletCollection.cs
- IsolatedStorageFilePermission.cs
- X509Certificate2Collection.cs
- TextSelectionHighlightLayer.cs
- LoginStatusDesigner.cs
- HijriCalendar.cs
- PlacementWorkspace.cs
- ThreadTrace.cs
- Animatable.cs
- PluggableProtocol.cs
- SingleResultAttribute.cs
- WindowsRichEditRange.cs
- DynamicDocumentPaginator.cs
- _UriTypeConverter.cs
- RealizationDrawingContextWalker.cs
- _emptywebproxy.cs
- DtdParser.cs
- TextDecorationCollection.cs
- RuntimeIdentifierPropertyAttribute.cs
- WinHttpWebProxyFinder.cs
- MemberPath.cs
- FilteredAttributeCollection.cs
- StreamWriter.cs
- DependencySource.cs
- AggregatePushdown.cs
- MimeFormatter.cs
- ScrollViewer.cs
- OutOfMemoryException.cs
- ListViewCommandEventArgs.cs
- EmbossBitmapEffect.cs
- CreateUserErrorEventArgs.cs
- XmlObjectSerializerReadContextComplex.cs
- SymLanguageVendor.cs
- ClientConfigurationSystem.cs
- NameTable.cs
- Decoder.cs
- DataControlReferenceCollection.cs
- DrawingBrush.cs
- CatalogPartCollection.cs
- ItemContainerProviderWrapper.cs
- TextTreeRootTextBlock.cs
- Utils.cs
- DecoderExceptionFallback.cs