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
- XmlLinkedNode.cs
- path.cs
- MILUtilities.cs
- HtmlInputText.cs
- Polygon.cs
- ToolCreatedEventArgs.cs
- XmlSerializerNamespaces.cs
- ApplicationGesture.cs
- ByteConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- InkCollectionBehavior.cs
- TextBoxBase.cs
- UniqueID.cs
- Animatable.cs
- NativeMethods.cs
- VoiceObjectToken.cs
- VolatileResourceManager.cs
- ProfilePropertySettings.cs
- ResourceDefaultValueAttribute.cs
- RemoteWebConfigurationHostServer.cs
- Button.cs
- ActivityDelegate.cs
- UnsafeCollabNativeMethods.cs
- IgnoreSection.cs
- RangeValuePatternIdentifiers.cs
- Emitter.cs
- SecurityCriticalDataForSet.cs
- NaturalLanguageHyphenator.cs
- ToolStripHighContrastRenderer.cs
- MetafileHeaderWmf.cs
- ListMarkerSourceInfo.cs
- embossbitmapeffect.cs
- InputScope.cs
- UidPropertyAttribute.cs
- FactoryRecord.cs
- AnnotationStore.cs
- ChangeProcessor.cs
- UserValidatedEventArgs.cs
- PageStatePersister.cs
- EventLogger.cs
- TraceLevelHelper.cs
- ScriptingAuthenticationServiceSection.cs
- TcpTransportSecurityElement.cs
- GridViewRowPresenter.cs
- XmlSchemaSimpleTypeUnion.cs
- Thickness.cs
- EntityCodeGenerator.cs
- x509utils.cs
- HttpPostServerProtocol.cs
- ArraySortHelper.cs
- IntegerFacetDescriptionElement.cs
- OleDbRowUpdatingEvent.cs
- TraceUtils.cs
- MsmqNonTransactedPoisonHandler.cs
- SizeAnimation.cs
- ToolStripDropDownItem.cs
- SmtpMail.cs
- SQLBinary.cs
- SecurityDescriptor.cs
- UnsafeNativeMethods.cs
- WaitForChangedResult.cs
- ConvertEvent.cs
- WorkflowEventArgs.cs
- DataGridViewTopLeftHeaderCell.cs
- RuleSettingsCollection.cs
- RoleManagerModule.cs
- Animatable.cs
- FileDialogPermission.cs
- WebPartEditVerb.cs
- RelationshipEndCollection.cs
- MachineKeyConverter.cs
- PointConverter.cs
- EmbeddedMailObject.cs
- TextBlockAutomationPeer.cs
- NavigationService.cs
- OdbcUtils.cs
- UxThemeWrapper.cs
- WindowsFormsLinkLabel.cs
- assemblycache.cs
- MemoryMappedFileSecurity.cs
- PrimitiveXmlSerializers.cs
- BinHexEncoder.cs
- PaperSize.cs
- DocumentPageTextView.cs
- FixedLineResult.cs
- FunctionNode.cs
- DecimalStorage.cs
- WinFormsComponentEditor.cs
- CachedBitmap.cs
- SqlMethodCallConverter.cs
- DocumentViewer.cs
- SerialPinChanges.cs
- DiscreteKeyFrames.cs
- Ipv6Element.cs
- TextFragmentEngine.cs
- ConnectionManagementSection.cs
- FormsAuthentication.cs
- IdnElement.cs
- NavigationProperty.cs
- WebBrowserSiteBase.cs