Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CodeChecksumPragma.cs
- ServiceProviders.cs
- EllipseGeometry.cs
- ProgressBar.cs
- ActivityExecutionContextCollection.cs
- securitycriticaldataClass.cs
- RouteItem.cs
- SmiEventSink_Default.cs
- XmlUtil.cs
- StorageComplexTypeMapping.cs
- SelectorAutomationPeer.cs
- HtmlTableCellCollection.cs
- ReturnType.cs
- SystemResourceKey.cs
- FontNamesConverter.cs
- DisableDpiAwarenessAttribute.cs
- TextAnchor.cs
- MergePropertyDescriptor.cs
- DataGridViewColumnConverter.cs
- Message.cs
- WsdlBuildProvider.cs
- DataBindingExpressionBuilder.cs
- ConstrainedDataObject.cs
- SymmetricAlgorithm.cs
- ContextMenu.cs
- BoundColumn.cs
- StylusOverProperty.cs
- FrugalMap.cs
- DoubleConverter.cs
- VectorAnimationUsingKeyFrames.cs
- AttributeCollection.cs
- WebPartEditorOkVerb.cs
- UserControlParser.cs
- DatagridviewDisplayedBandsData.cs
- HttpResponseInternalBase.cs
- Parallel.cs
- CircleHotSpot.cs
- HelpProvider.cs
- AnnotationResourceChangedEventArgs.cs
- OracleSqlParser.cs
- OrderedParallelQuery.cs
- ICspAsymmetricAlgorithm.cs
- connectionpool.cs
- AccessDataSource.cs
- ObjectHandle.cs
- ContainerVisual.cs
- Wrapper.cs
- TabControl.cs
- DataGridViewImageColumn.cs
- DataRecordObjectView.cs
- StatusBarDrawItemEvent.cs
- DataColumnMapping.cs
- HighContrastHelper.cs
- EntityTemplateFactory.cs
- HttpProtocolReflector.cs
- LinkedResource.cs
- MemberHolder.cs
- ListViewUpdateEventArgs.cs
- MenuCommandService.cs
- CellParagraph.cs
- DocumentPage.cs
- DesignerForm.cs
- CompositeCollectionView.cs
- DashStyle.cs
- XmlSchemaChoice.cs
- ListViewItem.cs
- WebPartMenu.cs
- iisPickupDirectory.cs
- CompiledQueryCacheKey.cs
- InvalidComObjectException.cs
- HttpConfigurationContext.cs
- WindowCollection.cs
- RoleService.cs
- NodeFunctions.cs
- AttachmentService.cs
- SignatureToken.cs
- Translator.cs
- DesignerActionItem.cs
- ResourcePool.cs
- DataSourceSelectArguments.cs
- CollectionViewProxy.cs
- XmlSchemaAny.cs
- dbenumerator.cs
- ClientProxyGenerator.cs
- httpapplicationstate.cs
- EmptyEnumerable.cs
- DateTimeOffsetStorage.cs
- Image.cs
- AudioLevelUpdatedEventArgs.cs
- Function.cs
- LabelDesigner.cs
- DropDownButton.cs
- InvalidProgramException.cs
- ListViewItemMouseHoverEvent.cs
- GregorianCalendarHelper.cs
- EventData.cs
- AuthenticationService.cs
- BaseUriHelper.cs
- SafeHandle.cs
- brushes.cs