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
- PersonalizablePropertyEntry.cs
- CompilerResults.cs
- ServiceHostingEnvironmentSection.cs
- Thread.cs
- BoundField.cs
- ValidateNames.cs
- IntegerValidatorAttribute.cs
- PrivateFontCollection.cs
- AcceleratedTokenAuthenticator.cs
- ContentDefinition.cs
- HtmlInputCheckBox.cs
- QilGenerator.cs
- FrameworkElement.cs
- ParserStreamGeometryContext.cs
- BeginSelectCardRequest.cs
- HttpCacheParams.cs
- DynamicPhysicalDiscoSearcher.cs
- OrthographicCamera.cs
- DependencyProperty.cs
- Walker.cs
- InstallerTypeAttribute.cs
- ViewStateModeByIdAttribute.cs
- TextContainer.cs
- ProtectedConfigurationProviderCollection.cs
- UnsafeNativeMethods.cs
- SimpleType.cs
- ConfigXmlCDataSection.cs
- CompModSwitches.cs
- AdCreatedEventArgs.cs
- DirectionalAction.cs
- x509utils.cs
- XmlTypeMapping.cs
- GAC.cs
- InputGestureCollection.cs
- SqlReorderer.cs
- Annotation.cs
- Dynamic.cs
- EventLogPermissionEntry.cs
- SelectionItemPattern.cs
- SQLInt32.cs
- WindowHideOrCloseTracker.cs
- documentsequencetextview.cs
- RTLAwareMessageBox.cs
- InstanceCollisionException.cs
- TemplateContent.cs
- SecurityState.cs
- DataSourceCache.cs
- ObjectManager.cs
- metadatamappinghashervisitor.cs
- SqlExpander.cs
- XmlSchemaValidationException.cs
- CorrelationManager.cs
- TrustSection.cs
- ValueTypeFieldReference.cs
- DesignerDataStoredProcedure.cs
- StylusPointProperties.cs
- IndicShape.cs
- BinaryMethodMessage.cs
- PathSegment.cs
- MissingSatelliteAssemblyException.cs
- EventRouteFactory.cs
- Size.cs
- DataGridViewDataConnection.cs
- NamedPipeChannelFactory.cs
- Matrix3D.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Window.cs
- StringFreezingAttribute.cs
- MetadataPropertyAttribute.cs
- SkipQueryOptionExpression.cs
- SchemaCollectionCompiler.cs
- StringUtil.cs
- SchemaDeclBase.cs
- HtmlInputCheckBox.cs
- FtpRequestCacheValidator.cs
- RelatedView.cs
- CompositeDesignerAccessibleObject.cs
- CodePageUtils.cs
- KeyConstraint.cs
- MatrixTransform.cs
- CapabilitiesRule.cs
- CellIdBoolean.cs
- SiteMapNodeItem.cs
- Effect.cs
- METAHEADER.cs
- SourceChangedEventArgs.cs
- SHA512Managed.cs
- CalloutQueueItem.cs
- ServiceDescriptionSerializer.cs
- RequestQueue.cs
- FontWeight.cs
- WMIInterop.cs
- Win32Native.cs
- WebResourceAttribute.cs
- CompilationUtil.cs
- WorkflowInstanceExtensionCollection.cs
- GcHandle.cs
- FunctionOverloadResolver.cs
- ColorInterpolationModeValidation.cs
- XamlToRtfWriter.cs