Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BamlLocalizableResource.cs
- Utility.cs
- ToolbarAUtomationPeer.cs
- Int32CollectionConverter.cs
- SQLRoleProvider.cs
- InputDevice.cs
- LineSegment.cs
- InstanceDataCollectionCollection.cs
- ToolTipService.cs
- ChtmlFormAdapter.cs
- Camera.cs
- ClipboardData.cs
- ArgIterator.cs
- ApplicationBuildProvider.cs
- IdentityManager.cs
- GridViewCancelEditEventArgs.cs
- SynchronizationContextHelper.cs
- DateTimeConverter.cs
- BinaryObjectReader.cs
- EngineSiteSapi.cs
- GridViewPageEventArgs.cs
- DispatcherHooks.cs
- Model3DCollection.cs
- TextSpan.cs
- WebServiceClientProxyGenerator.cs
- DetailsViewPageEventArgs.cs
- Base64Stream.cs
- RectIndependentAnimationStorage.cs
- Pair.cs
- URIFormatException.cs
- Connection.cs
- IODescriptionAttribute.cs
- DataGridViewCellStyleEditor.cs
- ErrorsHelper.cs
- InputLangChangeEvent.cs
- OdbcFactory.cs
- FormParameter.cs
- DependencySource.cs
- DecoderBestFitFallback.cs
- XmlAttributeAttribute.cs
- StickyNoteContentControl.cs
- PathNode.cs
- XmlSchemaCollection.cs
- ObjRef.cs
- CroppedBitmap.cs
- WbmpConverter.cs
- BinarySerializer.cs
- StrongNameIdentityPermission.cs
- PublisherMembershipCondition.cs
- InvalidEnumArgumentException.cs
- ExceptionUtility.cs
- SQLDouble.cs
- BinaryNegotiation.cs
- TemplateKey.cs
- WriteableBitmap.cs
- GridSplitter.cs
- EmptyReadOnlyDictionaryInternal.cs
- WCFServiceClientProxyGenerator.cs
- ComPlusTypeValidator.cs
- CookieParameter.cs
- TaskFactory.cs
- MetafileHeader.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DesignerHost.cs
- basemetadatamappingvisitor.cs
- MetadataSerializer.cs
- UnicodeEncoding.cs
- SvcMapFileSerializer.cs
- SqlResolver.cs
- RelationshipFixer.cs
- ScriptingRoleServiceSection.cs
- CommandEventArgs.cs
- ProxyFragment.cs
- OleDbSchemaGuid.cs
- EntitySqlQueryCacheEntry.cs
- MessageFormatterConverter.cs
- EndpointConfigContainer.cs
- DoubleAnimationUsingKeyFrames.cs
- UnicodeEncoding.cs
- TypeConvertions.cs
- XPathScanner.cs
- DateTimeConverter2.cs
- PipeSecurity.cs
- SoapSchemaImporter.cs
- AssertFilter.cs
- RegexCode.cs
- FormatterConverter.cs
- WorkflowMarkupSerializerMapping.cs
- SystemSounds.cs
- PropertyTabAttribute.cs
- GregorianCalendarHelper.cs
- DirectoryNotFoundException.cs
- HttpHeaderCollection.cs
- ValueChangedEventManager.cs
- TextElementEnumerator.cs
- ActivitySurrogate.cs
- CorruptStoreException.cs
- PersonalizableTypeEntry.cs
- ParameterCollection.cs
- MessageTraceRecord.cs