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
- DataGridComboBoxColumn.cs
- ResourcesChangeInfo.cs
- ThreadSafeList.cs
- XPathBinder.cs
- TemplatePagerField.cs
- LightweightEntityWrapper.cs
- Bitmap.cs
- Oid.cs
- mansign.cs
- ObjectDataSourceChooseTypePanel.cs
- RegisteredDisposeScript.cs
- DataGridViewCellPaintingEventArgs.cs
- ControlIdConverter.cs
- SafeTimerHandle.cs
- SimpleMailWebEventProvider.cs
- SendActivityDesignerTheme.cs
- HuffCodec.cs
- ImmutablePropertyDescriptorGridEntry.cs
- PeerNameRecord.cs
- RadioButton.cs
- ListBindingHelper.cs
- FileSecurity.cs
- StylusPointPropertyId.cs
- BinaryFormatterWriter.cs
- ISO2022Encoding.cs
- Floater.cs
- BindableTemplateBuilder.cs
- __Filters.cs
- SchemaImporter.cs
- COAUTHIDENTITY.cs
- DictionaryCustomTypeDescriptor.cs
- SafeBitVector32.cs
- InvalidProgramException.cs
- InputChannel.cs
- TrackBar.cs
- MergeLocalizationDirectives.cs
- SctClaimDictionary.cs
- returneventsaver.cs
- PointCollection.cs
- TargetException.cs
- CodeCastExpression.cs
- CanonicalXml.cs
- FieldMetadata.cs
- DataGridViewButtonColumn.cs
- ShaderEffect.cs
- SafeNativeMethods.cs
- StringFreezingAttribute.cs
- TypeSemantics.cs
- FormViewPagerRow.cs
- MatrixTransform.cs
- ToolStripContentPanelRenderEventArgs.cs
- SolidColorBrush.cs
- ItemCollection.cs
- TextEditorSelection.cs
- NativeRightsManagementAPIsStructures.cs
- QilCloneVisitor.cs
- FullTextLine.cs
- HtmlInputButton.cs
- ContextMenu.cs
- XmlnsCompatibleWithAttribute.cs
- WorkflowView.cs
- LayoutDump.cs
- XsltContext.cs
- PeerConnector.cs
- ObjectItemCollection.cs
- QilDataSource.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- XmlAtomicValue.cs
- TraversalRequest.cs
- LockedAssemblyCache.cs
- PixelFormats.cs
- TrackingStringDictionary.cs
- ExpressionTextBox.xaml.cs
- Rect3D.cs
- XmlLoader.cs
- ExceptionNotification.cs
- ContentPresenter.cs
- EmptyReadOnlyDictionaryInternal.cs
- XMLUtil.cs
- PersonalizationProviderCollection.cs
- EventLog.cs
- FontFamily.cs
- securestring.cs
- IResourceProvider.cs
- StickyNoteHelper.cs
- UnsafeNativeMethods.cs
- ObjectStateFormatter.cs
- AsymmetricSecurityBindingElement.cs
- PermissionSetTriple.cs
- RemoveStoryboard.cs
- IdentityHolder.cs
- shaperfactory.cs
- OciEnlistContext.cs
- MsmqInputChannelListener.cs
- FontStretchConverter.cs
- PlainXmlDeserializer.cs
- Accessible.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- AppDomainGrammarProxy.cs
- PageContent.cs