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
- DocumentViewer.cs
- ValueTypeFixupInfo.cs
- XmlSchemaSimpleContent.cs
- Misc.cs
- TypeDescriptor.cs
- BaseTreeIterator.cs
- SerialPinChanges.cs
- NameSpaceEvent.cs
- ADConnectionHelper.cs
- DataSysAttribute.cs
- SerializationAttributes.cs
- RowUpdatedEventArgs.cs
- DropShadowBitmapEffect.cs
- ScrollBar.cs
- Label.cs
- XmlSchemaAnnotation.cs
- NameValueConfigurationElement.cs
- EmbeddedMailObjectsCollection.cs
- DynamicResourceExtensionConverter.cs
- ListViewDataItem.cs
- LabelLiteral.cs
- BatchWriter.cs
- VirtualizingPanel.cs
- SqlProfileProvider.cs
- PreProcessInputEventArgs.cs
- LogLogRecord.cs
- ThreadNeutralSemaphore.cs
- IdleTimeoutMonitor.cs
- AtomMaterializer.cs
- RegexRunner.cs
- AssemblyUtil.cs
- ExtendedProtectionPolicy.cs
- ResourcePool.cs
- ColorMap.cs
- BehaviorEditorPart.cs
- ImageClickEventArgs.cs
- AuthenticationService.cs
- CalendarTable.cs
- DataViewManagerListItemTypeDescriptor.cs
- CreateUserWizard.cs
- XslException.cs
- WindowsGrip.cs
- validationstate.cs
- PropertyTabAttribute.cs
- ThemeDictionaryExtension.cs
- DomainConstraint.cs
- UxThemeWrapper.cs
- AvtEvent.cs
- NotifyIcon.cs
- ConfigurationSectionGroup.cs
- FormatConvertedBitmap.cs
- messageonlyhwndwrapper.cs
- UInt64.cs
- AnnotationHighlightLayer.cs
- PackagePart.cs
- OutgoingWebRequestContext.cs
- Nullable.cs
- TypeForwardedToAttribute.cs
- ObjectIDGenerator.cs
- Zone.cs
- FreeFormDesigner.cs
- XmlSchemaRedefine.cs
- ObjectQueryState.cs
- LoginCancelEventArgs.cs
- RequestTimeoutManager.cs
- FontSourceCollection.cs
- DefaultHttpHandler.cs
- ExpandCollapseProviderWrapper.cs
- ManipulationStartingEventArgs.cs
- XmlSchemaNotation.cs
- DataGridSortCommandEventArgs.cs
- MsmqBindingElementBase.cs
- Region.cs
- TransformPatternIdentifiers.cs
- MediaElementAutomationPeer.cs
- CodeAttributeArgument.cs
- BindingManagerDataErrorEventArgs.cs
- WebRequestModuleElementCollection.cs
- SymDocumentType.cs
- Visual3D.cs
- ReflectionHelper.cs
- COM2TypeInfoProcessor.cs
- ChannelTerminatedException.cs
- FileIOPermission.cs
- ListControl.cs
- RealizationContext.cs
- QuestionEventArgs.cs
- GuidelineSet.cs
- RTLAwareMessageBox.cs
- ColumnMapVisitor.cs
- UpdateProgress.cs
- CollectionConverter.cs
- StyleBamlRecordReader.cs
- ReadOnlyHierarchicalDataSource.cs
- PKCS1MaskGenerationMethod.cs
- RectangleF.cs
- RemotingSurrogateSelector.cs
- AppliedDeviceFiltersEditor.cs
- PostBackOptions.cs
- EmptyEnumerable.cs