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
- UserControl.cs
- SqlProviderManifest.cs
- MessageQueueException.cs
- EmbossBitmapEffect.cs
- EntityCommandDefinition.cs
- VScrollProperties.cs
- StrongNameUtility.cs
- iisPickupDirectory.cs
- Vector3dCollection.cs
- xsdvalidator.cs
- AssemblyCollection.cs
- PenLineJoinValidation.cs
- PerformanceCounterCategory.cs
- ManifestResourceInfo.cs
- TypeForwardedToAttribute.cs
- TrackingProfileSerializer.cs
- WindowsRichEdit.cs
- MonikerSyntaxException.cs
- HtmlInputRadioButton.cs
- ArrayConverter.cs
- SchemaTableOptionalColumn.cs
- UpdateManifestForBrowserApplication.cs
- HwndHostAutomationPeer.cs
- ConfigXmlAttribute.cs
- ArgumentException.cs
- IIS7WorkerRequest.cs
- AutomationPatternInfo.cs
- SystemIcmpV4Statistics.cs
- VectorConverter.cs
- PerspectiveCamera.cs
- BitmapEffectGroup.cs
- TextTreeFixupNode.cs
- HostedNamedPipeTransportManager.cs
- DefaultValueConverter.cs
- SqlTypesSchemaImporter.cs
- SiteMapPath.cs
- SessionStateUtil.cs
- ConfigurationElement.cs
- ListDictionary.cs
- Region.cs
- HeaderLabel.cs
- BitmapEffect.cs
- MultiView.cs
- CodeActivityMetadata.cs
- XmlAttributeProperties.cs
- path.cs
- RegistryConfigurationProvider.cs
- SecurityCriticalDataForSet.cs
- EventLogEntryCollection.cs
- SystemNetHelpers.cs
- SafeNativeMethods.cs
- PageContent.cs
- GenericAuthenticationEventArgs.cs
- CorrelationQuery.cs
- SeparatorAutomationPeer.cs
- TreeView.cs
- SqlFactory.cs
- TypeDescriptionProvider.cs
- ConfigurationException.cs
- SplineKeyFrames.cs
- XmlSchemaSimpleContent.cs
- TextWriter.cs
- SecurityCriticalDataForSet.cs
- StringExpressionSet.cs
- ContextConfiguration.cs
- FormsAuthenticationEventArgs.cs
- JoinSymbol.cs
- BaseProcessor.cs
- SubqueryTrackingVisitor.cs
- AuditLevel.cs
- Section.cs
- XmlSecureResolver.cs
- XmlSchemas.cs
- ConsoleKeyInfo.cs
- WhitespaceReader.cs
- CodeTypeReferenceSerializer.cs
- Geometry.cs
- PriorityQueue.cs
- EncodingInfo.cs
- FileDialogCustomPlace.cs
- ReflectionServiceProvider.cs
- StylusPointPropertyId.cs
- PictureBox.cs
- ZipIOLocalFileDataDescriptor.cs
- DataPagerField.cs
- GetPageCompletedEventArgs.cs
- AutomationPeer.cs
- ControlCollection.cs
- Pointer.cs
- GenericUI.cs
- ServicesExceptionNotHandledEventArgs.cs
- CanonicalFormWriter.cs
- TemplatedEditableDesignerRegion.cs
- RawKeyboardInputReport.cs
- ToolStripCodeDomSerializer.cs
- EventLogPermission.cs
- SoapCodeExporter.cs
- SingleTagSectionHandler.cs
- ResourceContainer.cs
- ListenDesigner.cs