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
- SafeViewOfFileHandle.cs
- ServiceInfoCollection.cs
- SchemaTypeEmitter.cs
- ProviderIncompatibleException.cs
- SslStreamSecurityElement.cs
- ExtractorMetadata.cs
- ToolConsole.cs
- bindurihelper.cs
- UserControl.cs
- path.cs
- SQLUtility.cs
- DataColumnCollection.cs
- Stylesheet.cs
- Base64Stream.cs
- ComPlusServiceLoader.cs
- ControlType.cs
- MetabaseSettingsIis7.cs
- TripleDESCryptoServiceProvider.cs
- TextParagraph.cs
- CaseExpr.cs
- TokenBasedSet.cs
- DataRelationPropertyDescriptor.cs
- HttpProcessUtility.cs
- KoreanLunisolarCalendar.cs
- HelpKeywordAttribute.cs
- ListView.cs
- LexicalChunk.cs
- MouseButton.cs
- Visual3D.cs
- Padding.cs
- GPPOINT.cs
- DataBoundControlHelper.cs
- LinearKeyFrames.cs
- ValidationErrorCollection.cs
- Geometry.cs
- OdbcParameter.cs
- XmlSchemaSimpleType.cs
- TraceListeners.cs
- SiteMapNode.cs
- TableDetailsRow.cs
- EntityTransaction.cs
- UdpTransportBindingElement.cs
- TextRangeEdit.cs
- ExceptionTrace.cs
- DirectionalLight.cs
- BypassElementCollection.cs
- EventSource.cs
- mansign.cs
- WebBrowserNavigatedEventHandler.cs
- Deserializer.cs
- XmlToDatasetMap.cs
- XmlSchemaException.cs
- HtmlInputControl.cs
- SystemWebExtensionsSectionGroup.cs
- FigureHelper.cs
- DataMember.cs
- PolyQuadraticBezierSegment.cs
- Clipboard.cs
- Delegate.cs
- Compress.cs
- WmlPhoneCallAdapter.cs
- PeerCollaboration.cs
- configsystem.cs
- ModelUIElement3D.cs
- CustomWebEventKey.cs
- BamlWriter.cs
- AttachedAnnotation.cs
- Parallel.cs
- TabPage.cs
- XPathBuilder.cs
- PseudoWebRequest.cs
- WorkItem.cs
- ExtractorMetadata.cs
- TreeViewImageKeyConverter.cs
- DataGridDesigner.cs
- AstTree.cs
- DeleteHelper.cs
- ProviderIncompatibleException.cs
- InternalConfirm.cs
- regiisutil.cs
- ModelVisual3D.cs
- TemplateDefinition.cs
- XamlInt32CollectionSerializer.cs
- BamlLocalizableResourceKey.cs
- TakeQueryOptionExpression.cs
- EventLogRecord.cs
- ClaimTypes.cs
- Cursors.cs
- PersonalizationEntry.cs
- xdrvalidator.cs
- TextDecorationUnitValidation.cs
- UdpDiscoveryEndpointElement.cs
- Container.cs
- FocusChangedEventArgs.cs
- DbConnectionInternal.cs
- CodeTypeDelegate.cs
- QilFunction.cs
- BinHexDecoder.cs
- QilScopedVisitor.cs
- OpenTypeMethods.cs