Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XmlSchemaInclude.cs
- ToolstripProfessionalRenderer.cs
- ApplyTemplatesAction.cs
- ListViewSortEventArgs.cs
- bindurihelper.cs
- TraceSection.cs
- ApplicationServicesHostFactory.cs
- ExtensibleClassFactory.cs
- BoundsDrawingContextWalker.cs
- DynamicContractTypeBuilder.cs
- TabletCollection.cs
- TabControl.cs
- Mapping.cs
- ComplusEndpointConfigContainer.cs
- PriorityItem.cs
- DynamicPropertyHolder.cs
- XamlHostingSectionGroup.cs
- MaskInputRejectedEventArgs.cs
- EpmCustomContentSerializer.cs
- PolicyValidator.cs
- SoapExtensionReflector.cs
- SplitterPanel.cs
- UnknownWrapper.cs
- X509CertificateCollection.cs
- SqlCachedBuffer.cs
- NativeMethods.cs
- SqlDelegatedTransaction.cs
- SerializationStore.cs
- XmlHierarchicalEnumerable.cs
- DetailsViewDeleteEventArgs.cs
- MultitargetUtil.cs
- ConfigurationManagerInternalFactory.cs
- ThousandthOfEmRealPoints.cs
- BitmapEffectrendercontext.cs
- XmlDataContract.cs
- LicenseManager.cs
- SortDescriptionCollection.cs
- KeyboardEventArgs.cs
- PoisonMessageException.cs
- SymLanguageType.cs
- TranslateTransform3D.cs
- wgx_commands.cs
- XmlValueConverter.cs
- RequestCache.cs
- ColumnResizeAdorner.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- PageAdapter.cs
- AppSettingsExpressionBuilder.cs
- TextEndOfParagraph.cs
- CodeVariableDeclarationStatement.cs
- DataGridPreparingCellForEditEventArgs.cs
- MeasureData.cs
- CompiledQuery.cs
- ClientType.cs
- IDictionary.cs
- FixedPageAutomationPeer.cs
- ToolBarTray.cs
- DateTimeSerializationSection.cs
- KoreanLunisolarCalendar.cs
- RTLAwareMessageBox.cs
- PermissionSet.cs
- HMACSHA1.cs
- CalendarModeChangedEventArgs.cs
- DataGridViewCellStyleConverter.cs
- NavigationPropertyEmitter.cs
- WorkflowMarkupSerializer.cs
- DbMetaDataFactory.cs
- ApplyTemplatesAction.cs
- DocumentGridContextMenu.cs
- ParameterBuilder.cs
- _RequestCacheProtocol.cs
- TraceContextRecord.cs
- EntityChangedParams.cs
- Rect.cs
- Script.cs
- AuthorizationRule.cs
- EncoderExceptionFallback.cs
- AssemblyResourceLoader.cs
- DialogResultConverter.cs
- SortQuery.cs
- DecimalStorage.cs
- LambdaCompiler.Lambda.cs
- XappLauncher.cs
- BaseServiceProvider.cs
- Rectangle.cs
- HebrewCalendar.cs
- Lazy.cs
- BamlCollectionHolder.cs
- SecurityRuntime.cs
- XmlSerializerNamespaces.cs
- VirtualPathData.cs
- FileDataSourceCache.cs
- DataFieldConverter.cs
- OneToOneMappingSerializer.cs
- InputReferenceExpression.cs
- GridToolTip.cs
- HostedTransportConfigurationManager.cs
- BigInt.cs
- EventItfInfo.cs
- Repeater.cs