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
- SignatureDescription.cs
- cookieexception.cs
- DataRecordObjectView.cs
- PersistChildrenAttribute.cs
- XPathNode.cs
- PaintEvent.cs
- filewebresponse.cs
- TimelineGroup.cs
- SudsParser.cs
- GradientBrush.cs
- CommandLibraryHelper.cs
- PathSegmentCollection.cs
- ContentDefinition.cs
- HttpConfigurationSystem.cs
- LogLogRecordHeader.cs
- WorkBatch.cs
- Command.cs
- ColumnResizeUndoUnit.cs
- SynchronizedInputAdaptor.cs
- KnownBoxes.cs
- ResourceLoader.cs
- HttpCapabilitiesSectionHandler.cs
- DataGridViewBindingCompleteEventArgs.cs
- LambdaCompiler.Logical.cs
- SmtpLoginAuthenticationModule.cs
- GatewayIPAddressInformationCollection.cs
- InternalControlCollection.cs
- XmlBindingWorker.cs
- EntityProxyTypeInfo.cs
- SerialStream.cs
- Psha1DerivedKeyGenerator.cs
- UrlMappingsSection.cs
- TextServicesHost.cs
- SmiConnection.cs
- PageCanvasSize.cs
- ReadOnlyState.cs
- XMLSyntaxException.cs
- PasswordTextContainer.cs
- DescendantBaseQuery.cs
- TextSchema.cs
- GridViewSortEventArgs.cs
- ConnectionProviderAttribute.cs
- _ConnectionGroup.cs
- SessionIDManager.cs
- DirtyTextRange.cs
- AnnotationHighlightLayer.cs
- odbcmetadatacolumnnames.cs
- ResourceReferenceKeyNotFoundException.cs
- XhtmlTextWriter.cs
- X509Certificate.cs
- Utils.cs
- SiteMapDataSource.cs
- DataFormats.cs
- ServicesUtilities.cs
- PointLight.cs
- DoubleStorage.cs
- SyndicationSerializer.cs
- LabelLiteral.cs
- NumberFormatter.cs
- MessageEncodingBindingElementImporter.cs
- Animatable.cs
- HtmlTextViewAdapter.cs
- ResourceLoader.cs
- TimelineGroup.cs
- TraceContextEventArgs.cs
- OpCopier.cs
- ContentElement.cs
- ParserHooks.cs
- Block.cs
- WebRequestModuleElementCollection.cs
- InputMethodStateChangeEventArgs.cs
- HtmlToClrEventProxy.cs
- ItemsPresenter.cs
- ListMarkerLine.cs
- BindingList.cs
- PersonalizablePropertyEntry.cs
- XmlSchemaAll.cs
- SerializationSectionGroup.cs
- ConfigurationSchemaErrors.cs
- DecimalAnimation.cs
- FloatUtil.cs
- RootNamespaceAttribute.cs
- ISFClipboardData.cs
- PickBranchDesigner.xaml.cs
- DrawingAttributes.cs
- ProxySimple.cs
- IItemContainerGenerator.cs
- BinaryObjectReader.cs
- ApplicationManager.cs
- DocumentViewerHelper.cs
- CollectionBase.cs
- HttpCachePolicyBase.cs
- RulePatternOps.cs
- ConfigXmlWhitespace.cs
- HttpFileCollectionWrapper.cs
- HttpWebResponse.cs
- DataGridViewCellStyleConverter.cs
- FactoryRecord.cs
- BaseCollection.cs
- BindingExpression.cs