Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / mediaeventargs.cs / 1305600 / 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
- TimelineGroup.cs
- EntityViewContainer.cs
- AutomationPattern.cs
- ConnectionStringsSection.cs
- HashJoinQueryOperatorEnumerator.cs
- ReplyAdapterChannelListener.cs
- SerializationSectionGroup.cs
- ListControlDesigner.cs
- TextDpi.cs
- DataRowComparer.cs
- TextContainerHelper.cs
- DatePickerTextBox.cs
- DataGridTextBox.cs
- HttpRawResponse.cs
- ServerIdentity.cs
- ClientProxyGenerator.cs
- ToggleButton.cs
- SchemaMapping.cs
- BaseServiceProvider.cs
- LogEntrySerialization.cs
- BaseCodeDomTreeGenerator.cs
- KeyManager.cs
- ProtectedConfigurationSection.cs
- GZipStream.cs
- DesignTimeTemplateParser.cs
- WindowsScrollBar.cs
- Evaluator.cs
- EntryPointNotFoundException.cs
- IxmlLineInfo.cs
- IsolatedStorageFilePermission.cs
- DecoderFallback.cs
- IDReferencePropertyAttribute.cs
- TableLayoutSettings.cs
- ToolStripPanelSelectionGlyph.cs
- WebConfigurationHost.cs
- NumberEdit.cs
- FileLogRecord.cs
- OleDbDataReader.cs
- UDPClient.cs
- InputScopeManager.cs
- X509Certificate.cs
- PeerService.cs
- DocumentPageViewAutomationPeer.cs
- MarshalDirectiveException.cs
- ContextStaticAttribute.cs
- ManifestResourceInfo.cs
- DataGridCaption.cs
- ZipFileInfoCollection.cs
- XdrBuilder.cs
- AttributedMetaModel.cs
- Journaling.cs
- InstancePersistenceContext.cs
- CmsUtils.cs
- SecurityDescriptor.cs
- HuffCodec.cs
- ReferenceService.cs
- MessageBox.cs
- DataBindingList.cs
- Group.cs
- MouseEvent.cs
- SignatureSummaryDialog.cs
- DropShadowBitmapEffect.cs
- xdrvalidator.cs
- DataGridColumnCollection.cs
- PropertyDescriptorCollection.cs
- HideDisabledControlAdapter.cs
- DecoderReplacementFallback.cs
- ScriptingWebServicesSectionGroup.cs
- UriTemplateDispatchFormatter.cs
- LoginCancelEventArgs.cs
- ProgressiveCrcCalculatingStream.cs
- glyphs.cs
- SystemTcpStatistics.cs
- RequestTimeoutManager.cs
- RequestCacheManager.cs
- DataGridViewRowCollection.cs
- MultidimensionalArrayItemReference.cs
- ReadOnlyDictionary.cs
- SecurityKeyIdentifier.cs
- ArrayConverter.cs
- UpnEndpointIdentity.cs
- AssociatedControlConverter.cs
- SignedInfo.cs
- Expander.cs
- MaterializeFromAtom.cs
- Rotation3DKeyFrameCollection.cs
- columnmapfactory.cs
- TreeNodeSelectionProcessor.cs
- HyperLinkStyle.cs
- RelativeSource.cs
- entitydatasourceentitysetnameconverter.cs
- DetailsViewDeleteEventArgs.cs
- SchemaNotation.cs
- WinEventHandler.cs
- WorkflowRuntimeService.cs
- SqlTypeConverter.cs
- DesignerWithHeader.cs
- Component.cs
- Win32KeyboardDevice.cs
- UpDownBaseDesigner.cs