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
- KeyGestureValueSerializer.cs
- OdbcEnvironmentHandle.cs
- SynthesizerStateChangedEventArgs.cs
- SqlConnectionFactory.cs
- EnumUnknown.cs
- OdbcError.cs
- QuadraticBezierSegment.cs
- WebPartHelpVerb.cs
- TransformerInfoCollection.cs
- DSASignatureFormatter.cs
- List.cs
- SiteMapPath.cs
- PageFunction.cs
- InProcStateClientManager.cs
- Avt.cs
- ActiveXContainer.cs
- DocumentGridContextMenu.cs
- TextSimpleMarkerProperties.cs
- SuppressMergeCheckAttribute.cs
- JsonReader.cs
- HttpProxyTransportBindingElement.cs
- HwndProxyElementProvider.cs
- CorrelationKeyCalculator.cs
- MimeXmlImporter.cs
- LineGeometry.cs
- ServiceElementCollection.cs
- ConcurrentQueue.cs
- MostlySingletonList.cs
- SslStream.cs
- MouseActionValueSerializer.cs
- ADConnectionHelper.cs
- SingleBodyParameterMessageFormatter.cs
- xsdvalidator.cs
- CustomBindingElementCollection.cs
- Point4D.cs
- OdbcErrorCollection.cs
- HtmlEncodedRawTextWriter.cs
- XmlSchemaAll.cs
- MaterializeFromAtom.cs
- ExplicitDiscriminatorMap.cs
- StrongNameUtility.cs
- DoubleUtil.cs
- XmlSortKeyAccumulator.cs
- DiscoveryReferences.cs
- FilterableAttribute.cs
- UnsafeNativeMethods.cs
- DataControlField.cs
- nulltextcontainer.cs
- DependencyPropertyAttribute.cs
- QueryableFilterRepeater.cs
- MenuCommand.cs
- ManifestResourceInfo.cs
- MatrixStack.cs
- InputMethodStateChangeEventArgs.cs
- MediaElement.cs
- CodePrimitiveExpression.cs
- SuppressMergeCheckAttribute.cs
- LazyTextWriterCreator.cs
- CultureInfo.cs
- CurrentChangingEventManager.cs
- NumberSubstitution.cs
- ResolvedKeyFrameEntry.cs
- SimpleParser.cs
- EditorPart.cs
- ReadOnlyMetadataCollection.cs
- NullExtension.cs
- input.cs
- GeneralTransform3DTo2D.cs
- BuildManager.cs
- AcceleratedTokenProvider.cs
- ScopelessEnumAttribute.cs
- UniqueID.cs
- ExpressionVisitor.cs
- ConfigurationException.cs
- XPathNavigator.cs
- HGlobalSafeHandle.cs
- UndoEngine.cs
- Size3D.cs
- UserPreferenceChangedEventArgs.cs
- URL.cs
- CommonRemoteMemoryBlock.cs
- HTMLTextWriter.cs
- RenderData.cs
- ApplicationTrust.cs
- WinFormsSecurity.cs
- EtwTrackingBehavior.cs
- RichTextBoxConstants.cs
- Point3DCollection.cs
- SqlBuilder.cs
- Unit.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WebControl.cs
- NegationPusher.cs
- ConfigurationValidatorAttribute.cs
- TreeNode.cs
- Int32CollectionConverter.cs
- RefExpr.cs
- TemplatePagerField.cs
- WorkflowDispatchContext.cs
- XmlText.cs