Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventBookmark.cs
- QueryOptionExpression.cs
- ColorConverter.cs
- HttpPostProtocolReflector.cs
- ServiceDurableInstanceContextProvider.cs
- UserPreferenceChangedEventArgs.cs
- ScriptingScriptResourceHandlerSection.cs
- AccessorTable.cs
- ContainerFilterService.cs
- CodeTypeDeclaration.cs
- PartitionResolver.cs
- InvokeHandlers.cs
- FunctionMappingTranslator.cs
- GeometryDrawing.cs
- DependencyPropertyHelper.cs
- MobileControlPersister.cs
- Set.cs
- DesignBinding.cs
- xmlglyphRunInfo.cs
- PeerApplicationLaunchInfo.cs
- ResourceCodeDomSerializer.cs
- DesignerCommandSet.cs
- SecureStringHasher.cs
- SettingsPropertyIsReadOnlyException.cs
- Marshal.cs
- DataGridViewRowCancelEventArgs.cs
- Window.cs
- RuntimeResourceSet.cs
- WebPartTransformerCollection.cs
- BordersPage.cs
- Point3DCollection.cs
- ListComponentEditorPage.cs
- SimplePropertyEntry.cs
- AtomPub10CategoriesDocumentFormatter.cs
- XmlEntity.cs
- BinaryObjectWriter.cs
- CssClassPropertyAttribute.cs
- SharedPersonalizationStateInfo.cs
- SkewTransform.cs
- MILUtilities.cs
- IgnoreFlushAndCloseStream.cs
- ConfigurationException.cs
- InvalidCastException.cs
- PointAnimationUsingKeyFrames.cs
- SendingRequestEventArgs.cs
- SafeRightsManagementSessionHandle.cs
- MediaPlayer.cs
- ADMembershipUser.cs
- FormatVersion.cs
- SqlDataSourceSelectingEventArgs.cs
- oledbmetadatacollectionnames.cs
- IndexedGlyphRun.cs
- CqlLexerHelpers.cs
- DiscardableAttribute.cs
- DiscoveryOperationContextExtension.cs
- DSASignatureDeformatter.cs
- ScrollBar.cs
- ColumnBinding.cs
- SQLDecimal.cs
- TrackingAnnotationCollection.cs
- ConstraintCollection.cs
- PropertyTabAttribute.cs
- BamlTreeNode.cs
- XhtmlBasicPageAdapter.cs
- WebPartVerbsEventArgs.cs
- ThrowOnMultipleAssignment.cs
- X509Certificate.cs
- Helpers.cs
- EventListenerClientSide.cs
- StateMachineSubscription.cs
- ProtocolImporter.cs
- CellConstant.cs
- ObjectQueryState.cs
- CodeParameterDeclarationExpression.cs
- Drawing.cs
- ProtocolsConfigurationHandler.cs
- InputBindingCollection.cs
- WebPartTracker.cs
- Token.cs
- shaper.cs
- _NegoState.cs
- TaskSchedulerException.cs
- LineMetrics.cs
- HitTestParameters.cs
- TypeDescriptionProviderAttribute.cs
- BamlRecordReader.cs
- PointCollectionConverter.cs
- wgx_exports.cs
- GroupBoxDesigner.cs
- ScrollBarRenderer.cs
- DefaultValueMapping.cs
- SendOperation.cs
- XPathDocumentNavigator.cs
- InlineUIContainer.cs
- ExpressionDumper.cs
- invalidudtexception.cs
- DigestComparer.cs
- DefaultTextStoreTextComposition.cs
- OperationCanceledException.cs
- ColorKeyFrameCollection.cs