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
- PublisherIdentityPermission.cs
- ServiceReference.cs
- ReversePositionQuery.cs
- ElementFactory.cs
- FillRuleValidation.cs
- ExtenderHelpers.cs
- IItemProperties.cs
- VisualStyleRenderer.cs
- FileStream.cs
- SoapIgnoreAttribute.cs
- ChoiceConverter.cs
- Random.cs
- CheckPair.cs
- RegisteredArrayDeclaration.cs
- Rules.cs
- Transform3D.cs
- AdPostCacheSubstitution.cs
- MetadataSerializer.cs
- SymLanguageType.cs
- DrawingContextWalker.cs
- shaper.cs
- StringUtil.cs
- DbSource.cs
- HandledMouseEvent.cs
- RuntimeHelpers.cs
- SQLInt16Storage.cs
- TextSpanModifier.cs
- XmlBufferReader.cs
- XPathBinder.cs
- StandardCommandToolStripMenuItem.cs
- LocalizeDesigner.cs
- Color.cs
- ComponentResourceKeyConverter.cs
- ServiceOperationParameter.cs
- RegexGroupCollection.cs
- RouteValueExpressionBuilder.cs
- DataGridViewColumnTypeEditor.cs
- ProcessInputEventArgs.cs
- TextDecorationUnitValidation.cs
- SiteMapHierarchicalDataSourceView.cs
- NavigationHelper.cs
- MultipartContentParser.cs
- DragStartedEventArgs.cs
- WindowHideOrCloseTracker.cs
- ObjectStateManagerMetadata.cs
- EventRoute.cs
- SystemIPGlobalStatistics.cs
- AssemblySettingAttributes.cs
- WebControlAdapter.cs
- GACMembershipCondition.cs
- GenericPrincipal.cs
- TypeName.cs
- RoutedEvent.cs
- SchemaSetCompiler.cs
- WinFormsSecurity.cs
- AbstractSvcMapFileLoader.cs
- XmlSchemaSet.cs
- ObjectResult.cs
- SqlXml.cs
- RadioButton.cs
- FormsIdentity.cs
- XmlWhitespace.cs
- PassportAuthenticationEventArgs.cs
- OptimisticConcurrencyException.cs
- QueryRelOp.cs
- Package.cs
- BinaryMessageEncodingElement.cs
- UniqueIdentifierService.cs
- InternalPolicyElement.cs
- AggregatePushdown.cs
- Context.cs
- PeerNameResolver.cs
- XmlReflectionImporter.cs
- DataGridViewColumn.cs
- ProcessInfo.cs
- GridViewCellAutomationPeer.cs
- ColumnTypeConverter.cs
- CompositeScriptReference.cs
- EntityRecordInfo.cs
- EntityDataSourceReferenceGroup.cs
- EncryptedPackageFilter.cs
- ProgressBarRenderer.cs
- FormatterServicesNoSerializableCheck.cs
- ExtensionWindowHeader.cs
- VerificationException.cs
- RandomNumberGenerator.cs
- DataServiceException.cs
- FrameSecurityDescriptor.cs
- ObjectContext.cs
- TimeSpanStorage.cs
- HighlightComponent.cs
- ChangePasswordDesigner.cs
- DecimalConstantAttribute.cs
- QuaternionAnimation.cs
- DrawingImage.cs
- CompilerGlobalScopeAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- PlainXmlSerializer.cs
- ScrollBarRenderer.cs
- UnsafeNativeMethodsMilCoreApi.cs