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
- DataColumnMappingCollection.cs
- DynamicRenderer.cs
- ZoneButton.cs
- _Rfc2616CacheValidators.cs
- StringStorage.cs
- Base64Encoding.cs
- MsiStyleLogWriter.cs
- SaveFileDialog.cs
- WebPartEditVerb.cs
- ISAPIApplicationHost.cs
- LinqDataSourceSelectEventArgs.cs
- ISFTagAndGuidCache.cs
- ObjectParameter.cs
- DockProviderWrapper.cs
- DeferredTextReference.cs
- ResetableIterator.cs
- FormsAuthenticationTicket.cs
- TextChange.cs
- AggregateNode.cs
- _LazyAsyncResult.cs
- KeyGestureValueSerializer.cs
- FormatterServicesNoSerializableCheck.cs
- FormViewUpdatedEventArgs.cs
- Style.cs
- CreationContext.cs
- DataGridViewMethods.cs
- PartialClassGenerationTaskInternal.cs
- PrinterUnitConvert.cs
- XamlSerializer.cs
- SubMenuStyleCollection.cs
- AutomationPeer.cs
- MemberDescriptor.cs
- XmlQualifiedName.cs
- FileVersionInfo.cs
- TextHidden.cs
- UniqueEventHelper.cs
- ExpandCollapsePattern.cs
- BaseCAMarshaler.cs
- ReadContentAsBinaryHelper.cs
- Trace.cs
- XmlLoader.cs
- ProvidersHelper.cs
- ListBindableAttribute.cs
- ProgramPublisher.cs
- SQLBinary.cs
- InlineUIContainer.cs
- UInt64.cs
- ExclusiveCanonicalizationTransform.cs
- StartUpEventArgs.cs
- CheckBox.cs
- XmlSchemaGroup.cs
- EventLogger.cs
- SchemaConstraints.cs
- XmlSchemaDatatype.cs
- EventLogPermissionAttribute.cs
- EventLogger.cs
- Synchronization.cs
- DispatcherObject.cs
- FixedTextSelectionProcessor.cs
- Utility.cs
- ListBindingConverter.cs
- PrimaryKeyTypeConverter.cs
- PropertyManager.cs
- FormViewDeletedEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- DataGridRowHeader.cs
- SocketSettings.cs
- ApplicationInterop.cs
- NullRuntimeConfig.cs
- PropertyGridView.cs
- Subset.cs
- TableLayoutCellPaintEventArgs.cs
- SoapFormatter.cs
- GenericPrincipal.cs
- HideDisabledControlAdapter.cs
- FlatButtonAppearance.cs
- PenContext.cs
- ReadOnlyCollectionBase.cs
- MediaSystem.cs
- BuildResult.cs
- LayoutTable.cs
- controlskin.cs
- MtomMessageEncodingElement.cs
- AudioSignalProblemOccurredEventArgs.cs
- TextFormatterImp.cs
- ResourceKey.cs
- PrtCap_Public_Simple.cs
- FullTrustAssemblyCollection.cs
- MainMenu.cs
- WebConfigurationHostFileChange.cs
- ForceCopyBuildProvider.cs
- ExpressionTextBox.xaml.cs
- NameObjectCollectionBase.cs
- ErrorFormatterPage.cs
- LocalizabilityAttribute.cs
- StylusPoint.cs
- SubstitutionList.cs
- RelOps.cs
- UnsafeNativeMethods.cs
- IriParsingElement.cs