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
- RtfControls.cs
- MarginsConverter.cs
- XmlNodeChangedEventManager.cs
- JsonServiceDocumentSerializer.cs
- DBSqlParserTable.cs
- TypeSemantics.cs
- EntityProviderFactory.cs
- SelectionItemProviderWrapper.cs
- QueryActivatableWorkflowsCommand.cs
- UIElementPropertyUndoUnit.cs
- ThrowHelper.cs
- HttpValueCollection.cs
- MtomMessageEncodingBindingElement.cs
- PropertyDescriptorGridEntry.cs
- DATA_BLOB.cs
- WorkflowQueuingService.cs
- PipeStream.cs
- BaseCollection.cs
- MobileSysDescriptionAttribute.cs
- Emitter.cs
- SingleSelectRootGridEntry.cs
- ButtonField.cs
- URLEditor.cs
- InstanceCollisionException.cs
- WorkflowViewService.cs
- StrongNameUtility.cs
- ProviderConnectionPointCollection.cs
- ListDictionaryInternal.cs
- RelatedPropertyManager.cs
- ColorTranslator.cs
- NamespaceDecl.cs
- DataGridViewButtonColumn.cs
- DataGridDetailsPresenter.cs
- ThreadStartException.cs
- ControlBuilderAttribute.cs
- ByteAnimationUsingKeyFrames.cs
- ACL.cs
- ToolStripMenuItem.cs
- DataGridViewColumnStateChangedEventArgs.cs
- InkCanvas.cs
- CodeBlockBuilder.cs
- OleDbDataReader.cs
- CollectionView.cs
- WindowAutomationPeer.cs
- ConditionBrowserDialog.cs
- ValidationError.cs
- WindowsListViewGroupHelper.cs
- ModelService.cs
- DbTypeMap.cs
- ManipulationVelocities.cs
- Visual3DCollection.cs
- TextLine.cs
- TextProperties.cs
- WindowsTokenRoleProvider.cs
- DiagnosticSection.cs
- Misc.cs
- PackageRelationship.cs
- columnmapkeybuilder.cs
- DocumentXPathNavigator.cs
- AssemblyAttributesGoHere.cs
- BitmapVisualManager.cs
- SQLDateTime.cs
- XmlSchemaExternal.cs
- SoapSchemaExporter.cs
- EdmSchemaError.cs
- DataError.cs
- WindowsRebar.cs
- BrowserDefinition.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- CompositeActivityDesigner.cs
- RadioButtonAutomationPeer.cs
- ItemType.cs
- ToolStripDropDown.cs
- DataServiceHost.cs
- ScriptManagerProxy.cs
- BasePattern.cs
- GridEntry.cs
- SQLMembershipProvider.cs
- ConstructorNeedsTagAttribute.cs
- MethodBody.cs
- OpenFileDialog.cs
- OleStrCAMarshaler.cs
- DataGridViewImageColumn.cs
- TextSegment.cs
- ModelService.cs
- WebDescriptionAttribute.cs
- basecomparevalidator.cs
- SharedDp.cs
- Byte.cs
- RouteValueDictionary.cs
- TrustSection.cs
- RuntimeResourceSet.cs
- VisualStates.cs
- ConfigXmlReader.cs
- System.Data.OracleClient_BID.cs
- TableCellCollection.cs
- HealthMonitoringSectionHelper.cs
- WindowsContainer.cs
- SqlRowUpdatedEvent.cs
- QueryHandler.cs