Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XmlILStorageConverter.cs
- ListViewSelectEventArgs.cs
- Query.cs
- UpdatePanel.cs
- BufferModesCollection.cs
- Rule.cs
- MultipleViewProviderWrapper.cs
- Missing.cs
- TickBar.cs
- GeneratedContractType.cs
- DefaultEventAttribute.cs
- sitestring.cs
- CustomCategoryAttribute.cs
- StrongNameUtility.cs
- TabControlAutomationPeer.cs
- ActiveXSite.cs
- DetailsViewPageEventArgs.cs
- CodeAttributeArgumentCollection.cs
- FlagsAttribute.cs
- EventPrivateKey.cs
- TraceUtility.cs
- AtomServiceDocumentSerializer.cs
- WorkflowOperationErrorHandler.cs
- MultiBinding.cs
- SelectionWordBreaker.cs
- PlatformNotSupportedException.cs
- StdValidatorsAndConverters.cs
- DataProtection.cs
- Translator.cs
- DocumentXPathNavigator.cs
- ElementMarkupObject.cs
- OperationContractAttribute.cs
- BindUriHelper.cs
- FileUpload.cs
- ProfileSettingsCollection.cs
- EnumMember.cs
- MappingMetadataHelper.cs
- CollectionType.cs
- CanExecuteRoutedEventArgs.cs
- MenuAutomationPeer.cs
- FileDialogCustomPlace.cs
- shaperfactory.cs
- securestring.cs
- Accessors.cs
- SafeRightsManagementSessionHandle.cs
- CatalogPartCollection.cs
- EdmProperty.cs
- Odbc32.cs
- FontStyleConverter.cs
- PageHandlerFactory.cs
- StrokeDescriptor.cs
- RadioButton.cs
- ResourceManager.cs
- PersonalizableTypeEntry.cs
- FrameworkElementFactoryMarkupObject.cs
- AssociationEndMember.cs
- StackBuilderSink.cs
- HtmlShimManager.cs
- DefaultEventAttribute.cs
- GradientStopCollection.cs
- CookieProtection.cs
- Update.cs
- ServiceOperationUIEditor.cs
- DataMisalignedException.cs
- UriExt.cs
- SerializerProvider.cs
- ListBox.cs
- DataSetUtil.cs
- PrintDialog.cs
- TypeExtensionConverter.cs
- OperationCanceledException.cs
- SelectorItemAutomationPeer.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- Pair.cs
- HttpModuleActionCollection.cs
- DataGridViewAccessibleObject.cs
- ImageCodecInfoPrivate.cs
- ConstructorBuilder.cs
- UserNamePasswordServiceCredential.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- SmtpDigestAuthenticationModule.cs
- UpnEndpointIdentity.cs
- ObjectListCommandEventArgs.cs
- CollectionContainer.cs
- RoutedEventHandlerInfo.cs
- CodeStatementCollection.cs
- DataGridItemEventArgs.cs
- ItemCollection.cs
- SqlClientPermission.cs
- ScriptManagerProxy.cs
- SecurityException.cs
- DataSourceCacheDurationConverter.cs
- WindowsFormsHelpers.cs
- CreateUserErrorEventArgs.cs
- CultureInfo.cs
- ToolStripDropDownMenu.cs
- DocumentationServerProtocol.cs
- LogRecordSequence.cs
- BindValidationContext.cs
- GridViewColumnHeaderAutomationPeer.cs