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
- DispatcherEventArgs.cs
- FixedSOMPageConstructor.cs
- ConstructorNeedsTagAttribute.cs
- BevelBitmapEffect.cs
- MissingSatelliteAssemblyException.cs
- SemanticValue.cs
- DisplayMemberTemplateSelector.cs
- SettingsContext.cs
- DesignTimeTemplateParser.cs
- ExitEventArgs.cs
- TemplateAction.cs
- DataSourceSelectArguments.cs
- SecurityPolicyVersion.cs
- NavigatorOutput.cs
- XsltContext.cs
- ByteStack.cs
- Rotation3DAnimationUsingKeyFrames.cs
- LinkUtilities.cs
- SmiGettersStream.cs
- BinaryParser.cs
- DataIdProcessor.cs
- XmlAttribute.cs
- InvalidCommandTreeException.cs
- SqlStream.cs
- BrowserCapabilitiesCodeGenerator.cs
- UserNamePasswordValidator.cs
- RemotingException.cs
- DeclaredTypeValidator.cs
- TextRangeEditLists.cs
- BamlLocalizableResource.cs
- DynamicDataExtensions.cs
- LogReservationCollection.cs
- LayoutUtils.cs
- SoapObjectInfo.cs
- ClusterRegistryConfigurationProvider.cs
- XmlDocumentSerializer.cs
- FlowLayout.cs
- SqlConnection.cs
- TrackingServices.cs
- TextRangeEditTables.cs
- HashCodeCombiner.cs
- TransformerTypeCollection.cs
- FileIOPermission.cs
- relpropertyhelper.cs
- SecurityTokenTypes.cs
- DetailsViewCommandEventArgs.cs
- AnimatedTypeHelpers.cs
- StandardToolWindows.cs
- Label.cs
- _ListenerResponseStream.cs
- CompensateDesigner.cs
- InlineCollection.cs
- httpapplicationstate.cs
- RootBrowserWindowProxy.cs
- CodeEventReferenceExpression.cs
- TreeViewItem.cs
- ClientType.cs
- StylusDownEventArgs.cs
- HtmlInputFile.cs
- SystemIPInterfaceStatistics.cs
- XhtmlConformanceSection.cs
- QilReference.cs
- WebPartDisplayModeCollection.cs
- HostedTcpTransportManager.cs
- XmlSchemaObjectCollection.cs
- MethodSet.cs
- NativeCompoundFileAPIs.cs
- IdleTimeoutMonitor.cs
- NullableConverter.cs
- CodeNamespaceImportCollection.cs
- PasswordPropertyTextAttribute.cs
- DataObjectMethodAttribute.cs
- TextDocumentView.cs
- SettingsBindableAttribute.cs
- MeasureItemEvent.cs
- NamedElement.cs
- PixelFormatConverter.cs
- Variable.cs
- SchemaTableColumn.cs
- AttributeCollection.cs
- ColorInterpolationModeValidation.cs
- TemplateControlCodeDomTreeGenerator.cs
- BitmapFrameDecode.cs
- EntityViewGenerator.cs
- DecoderBestFitFallback.cs
- ScriptRegistrationManager.cs
- StandardRuntimeEnumValidatorAttribute.cs
- base64Transforms.cs
- PersonalizationStateInfoCollection.cs
- IPGlobalProperties.cs
- SamlDelegatingWriter.cs
- MLangCodePageEncoding.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- EndpointConfigContainer.cs
- DoubleLinkListEnumerator.cs
- DispatcherFrame.cs
- BindingsCollection.cs
- ConnectionOrientedTransportElement.cs
- EntitySqlQueryBuilder.cs
- counter.cs