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
- QualifierSet.cs
- ToolStripManager.cs
- BoundsDrawingContextWalker.cs
- CodeChecksumPragma.cs
- KeyProperty.cs
- HtmlElementEventArgs.cs
- ConfigPathUtility.cs
- PriorityBinding.cs
- SqlError.cs
- PeerApplication.cs
- EventDescriptor.cs
- StringCollection.cs
- DesignTableCollection.cs
- DataGridRow.cs
- SEHException.cs
- CompModSwitches.cs
- SqlClientWrapperSmiStream.cs
- TargetPerspective.cs
- TransportContext.cs
- ConsoleKeyInfo.cs
- QilSortKey.cs
- IteratorFilter.cs
- HttpModuleCollection.cs
- FunctionCommandText.cs
- DeviceContext.cs
- SqlDataSourceQueryConverter.cs
- RadioButton.cs
- CookieHandler.cs
- OpenFileDialog.cs
- DataGridViewDesigner.cs
- PopupRoot.cs
- Rules.cs
- PkcsUtils.cs
- NetworkInformationException.cs
- MatrixCamera.cs
- OpCodes.cs
- LayoutEditorPart.cs
- DynamicValidatorEventArgs.cs
- ConfigurationLocationCollection.cs
- ImportContext.cs
- HttpProfileGroupBase.cs
- HandlerBase.cs
- PersonalizationProviderCollection.cs
- WebPartDisplayModeEventArgs.cs
- StaticTextPointer.cs
- MouseEvent.cs
- TransformConverter.cs
- Clock.cs
- ObjectDataSourceStatusEventArgs.cs
- CompositeDataBoundControl.cs
- CookielessHelper.cs
- ExpressionVisitor.cs
- EntityCollection.cs
- PropertyTabAttribute.cs
- SemanticResultValue.cs
- ObjectDataSourceEventArgs.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- UiaCoreApi.cs
- _ListenerRequestStream.cs
- Property.cs
- TextRangeEdit.cs
- XmlDataProvider.cs
- AnnotationHighlightLayer.cs
- StaticSiteMapProvider.cs
- ProtocolsConfiguration.cs
- SelectionRange.cs
- ObjectSpanRewriter.cs
- EmbeddedObject.cs
- DocumentReference.cs
- ProbeRequestResponseAsyncResult.cs
- PeerEndPoint.cs
- RemoteArgument.cs
- TextElementEnumerator.cs
- MetadataAssemblyHelper.cs
- PropertyBuilder.cs
- BoolExpression.cs
- WebBrowserSiteBase.cs
- MembershipAdapter.cs
- DataGridViewCellEventArgs.cs
- CodeIdentifiers.cs
- ChooseAction.cs
- ObjectDataSourceEventArgs.cs
- Crc32.cs
- FixedFlowMap.cs
- WindowsGraphics2.cs
- OleDbEnumerator.cs
- ProcessManager.cs
- FixedSOMFixedBlock.cs
- GifBitmapEncoder.cs
- XPathPatternBuilder.cs
- BasicBrowserDialog.designer.cs
- LicenseProviderAttribute.cs
- LineServicesRun.cs
- DockPanel.cs
- CodeTypeOfExpression.cs
- ShaperBuffers.cs
- KeyValueSerializer.cs
- Win32.cs
- UIElementParagraph.cs
- TerminatorSinks.cs