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
- FormViewUpdateEventArgs.cs
- ToolboxControl.cs
- Condition.cs
- PanelDesigner.cs
- Listen.cs
- SaveFileDialog.cs
- PrintController.cs
- ChannelSinkStacks.cs
- XhtmlBasicPageAdapter.cs
- FieldNameLookup.cs
- RbTree.cs
- SchemaNames.cs
- safemediahandle.cs
- TrackingLocationCollection.cs
- BitArray.cs
- SupportsPreviewControlAttribute.cs
- PointAnimationUsingPath.cs
- SamlAudienceRestrictionCondition.cs
- CollectionType.cs
- FontSourceCollection.cs
- Converter.cs
- DrawingBrush.cs
- ConfigurationValidatorAttribute.cs
- ServiceChannel.cs
- DynamicILGenerator.cs
- oledbconnectionstring.cs
- TypeCacheManager.cs
- DateTimeSerializationSection.cs
- DetailsViewInsertEventArgs.cs
- COM2EnumConverter.cs
- NavigationService.cs
- HtmlFormAdapter.cs
- MessageQueueException.cs
- ClientConfigurationSystem.cs
- RotateTransform3D.cs
- SqlMetaData.cs
- ClientEventManager.cs
- XmlToDatasetMap.cs
- TreeViewImageKeyConverter.cs
- PropertyTabAttribute.cs
- TCPListener.cs
- TemplateField.cs
- Inflater.cs
- DataTableTypeConverter.cs
- SystemIcons.cs
- FrameworkElement.cs
- Math.cs
- TextReader.cs
- FormViewModeEventArgs.cs
- FormParameter.cs
- SqlEnums.cs
- ShapingEngine.cs
- SecureConversationVersion.cs
- DataGridViewColumnCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DocumentGridContextMenu.cs
- ResourceDescriptionAttribute.cs
- MatrixAnimationBase.cs
- KnownAssembliesSet.cs
- LazyTextWriterCreator.cs
- MergeFailedEvent.cs
- DataColumn.cs
- HierarchicalDataBoundControl.cs
- Timer.cs
- IPAddress.cs
- EventLogInternal.cs
- UrlAuthFailedErrorFormatter.cs
- AssociationTypeEmitter.cs
- VSWCFServiceContractGenerator.cs
- EtwTrace.cs
- EmptyQuery.cs
- StringDictionary.cs
- AstTree.cs
- XmlSchemaInferenceException.cs
- CodeCompiler.cs
- BridgeDataRecord.cs
- MemberHolder.cs
- PackageFilter.cs
- VariableQuery.cs
- URLString.cs
- SizeAnimation.cs
- OracleNumber.cs
- TextOnlyOutput.cs
- SmtpMail.cs
- StringHandle.cs
- DataGridViewControlCollection.cs
- ILGen.cs
- UnsafeNativeMethods.cs
- ContextMenu.cs
- GenericWebPart.cs
- StringFormat.cs
- DataViewSetting.cs
- RangeValuePattern.cs
- ColorConvertedBitmapExtension.cs
- DisplayMemberTemplateSelector.cs
- Tuple.cs
- ExitEventArgs.cs
- DBSchemaTable.cs
- InternalControlCollection.cs
- EntityTypeBase.cs