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
- LicFileLicenseProvider.cs
- Rectangle.cs
- EventLog.cs
- Pair.cs
- DataConnectionHelper.cs
- WebPartEditorApplyVerb.cs
- EntityCommandCompilationException.cs
- ProfessionalColorTable.cs
- TextTreeTextBlock.cs
- AddInSegmentDirectoryNotFoundException.cs
- NullExtension.cs
- X509SubjectKeyIdentifierClause.cs
- PtsHelper.cs
- ProfileSettingsCollection.cs
- AlternateView.cs
- HtmlFormWrapper.cs
- XmlBuffer.cs
- StdValidatorsAndConverters.cs
- TrackingStringDictionary.cs
- User.cs
- BufferedGraphicsManager.cs
- NetDataContractSerializer.cs
- WebPartHelpVerb.cs
- TagMapCollection.cs
- AsyncResult.cs
- CodeComment.cs
- ToolStripManager.cs
- XmlDictionaryString.cs
- TextDecoration.cs
- ControllableStoryboardAction.cs
- CodeAccessSecurityEngine.cs
- PathData.cs
- TrackingServices.cs
- BevelBitmapEffect.cs
- Math.cs
- StrokeCollection.cs
- BaseTemplatedMobileComponentEditor.cs
- DataObjectMethodAttribute.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DynamicPropertyHolder.cs
- CodeDirectoryCompiler.cs
- ImmutableCollection.cs
- TypeNameConverter.cs
- DBConnection.cs
- FrameworkObject.cs
- XAMLParseException.cs
- FrameworkRichTextComposition.cs
- SessionEndingCancelEventArgs.cs
- NotifyInputEventArgs.cs
- PenLineCapValidation.cs
- sqlnorm.cs
- ButtonBase.cs
- ToolStripOverflow.cs
- EndpointConfigContainer.cs
- XmlElementList.cs
- Normalization.cs
- ServerValidateEventArgs.cs
- CommandID.cs
- RotationValidation.cs
- UdpDiscoveryEndpointProvider.cs
- MemberAccessException.cs
- ThreadExceptionEvent.cs
- Margins.cs
- RegexGroup.cs
- Selection.cs
- EmptyEnumerator.cs
- LayoutTableCell.cs
- QilReference.cs
- PointConverter.cs
- ISCIIEncoding.cs
- StateMachineTimers.cs
- LambdaCompiler.Binary.cs
- WorkflowRequestContext.cs
- UnionExpr.cs
- SplineKeyFrames.cs
- FactorySettingsElement.cs
- DropDownButton.cs
- XamlFxTrace.cs
- ParserHooks.cs
- FormsAuthentication.cs
- SafeReversePInvokeHandle.cs
- KnowledgeBase.cs
- Hashtable.cs
- MultiSelectRootGridEntry.cs
- DataGridViewColumnTypeEditor.cs
- ImageSourceValueSerializer.cs
- PresentationTraceSources.cs
- SystemInformation.cs
- ToolStripDropTargetManager.cs
- FreezableOperations.cs
- GeneralTransform2DTo3D.cs
- XPathDocumentNavigator.cs
- Array.cs
- DirectionalLight.cs
- ReferentialConstraint.cs
- ToolBarTray.cs
- ExtentKey.cs
- WebPartsSection.cs
- Condition.cs
- TrustSection.cs