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
- DecimalConstantAttribute.cs
- PageThemeBuildProvider.cs
- SapiRecognizer.cs
- PhysicalOps.cs
- FormsIdentity.cs
- DefaultValueAttribute.cs
- NodeFunctions.cs
- AutomationPatternInfo.cs
- _ConnectionGroup.cs
- SecurityUtils.cs
- ColorMap.cs
- ProcessingInstructionAction.cs
- BinaryMessageEncodingElement.cs
- SpecialNameAttribute.cs
- DesignerMetadata.cs
- SequentialWorkflowHeaderFooter.cs
- NamespaceEmitter.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ScrollContentPresenter.cs
- GeometryHitTestResult.cs
- ModulesEntry.cs
- SqlCacheDependencyDatabaseCollection.cs
- ListViewSelectEventArgs.cs
- DiffuseMaterial.cs
- Size.cs
- Handle.cs
- ParameterExpression.cs
- WebMethodAttribute.cs
- SimpleExpression.cs
- RelationshipConstraintValidator.cs
- StylusPointProperty.cs
- DataGrid.cs
- WorkflowViewManager.cs
- WindowsToolbarAsMenu.cs
- ExpressionBuilderContext.cs
- ICspAsymmetricAlgorithm.cs
- FontInfo.cs
- RsaKeyIdentifierClause.cs
- StringFreezingAttribute.cs
- WebEvents.cs
- NameObjectCollectionBase.cs
- SoapObjectWriter.cs
- HttpServerVarsCollection.cs
- TemplateComponentConnector.cs
- Wizard.cs
- ViewStateException.cs
- GuidTagList.cs
- RestHandlerFactory.cs
- TreeViewHitTestInfo.cs
- SchemaMapping.cs
- NetTcpBinding.cs
- ReadWriteSpinLock.cs
- TileModeValidation.cs
- InstanceNameConverter.cs
- Attributes.cs
- TextRange.cs
- ExtensionWindow.cs
- MimeMultiPart.cs
- ServiceNameElementCollection.cs
- WebPartEventArgs.cs
- Operand.cs
- WsrmMessageInfo.cs
- ObjectItemNoOpAssemblyLoader.cs
- DateTime.cs
- CodeCatchClauseCollection.cs
- SessionStateModule.cs
- RestHandlerFactory.cs
- Merger.cs
- TextFragmentEngine.cs
- MetadataItem_Static.cs
- Cursors.cs
- ResourceAttributes.cs
- JoinCqlBlock.cs
- ConnectionConsumerAttribute.cs
- DataServiceResponse.cs
- EditorPart.cs
- WebPartDisplayMode.cs
- WebPartMovingEventArgs.cs
- SystemIcmpV4Statistics.cs
- SharedMemory.cs
- ToolBarButtonClickEvent.cs
- DataGridColumnCollection.cs
- MarginsConverter.cs
- TiffBitmapEncoder.cs
- Encoder.cs
- ObjectViewFactory.cs
- ResourceReader.cs
- ContentType.cs
- ConstraintEnumerator.cs
- MetadataArtifactLoaderResource.cs
- DataGridViewCheckBoxCell.cs
- ArcSegment.cs
- XhtmlBasicLinkAdapter.cs
- MergablePropertyAttribute.cs
- OverlappedContext.cs
- JapaneseCalendar.cs
- OleDragDropHandler.cs
- CFGGrammar.cs
- XmlQueryRuntime.cs
- ContentType.cs