| File: System\Windows\Media\InvalidWMPVersionException.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj (PresentationCore) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Runtime.Serialization; namespace System.Windows.Media { /// ///<summary>Exception class for when WMP 10 is not installed</summary> /// [Serializable] public class InvalidWmpVersionException : SystemException { ///<summary> /// Constructor ///</summary> public InvalidWmpVersionException() {} ///<summary> /// Constructor ///</summary> ///<param name="message"> /// Exception message ///</param> public InvalidWmpVersionException(string message) : base(message) {} /// <summary> /// Creates a new instance of InvalidWmpVersionException class and initializes it with serialized data. /// This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. /// </summary> /// <param name="info"> /// The object that holds the serialized object data. /// </param> /// <param name="context"> /// The contextual information about the source or destination. /// </param> #pragma warning disable SYSLIB0051 // Type or member is obsolete protected InvalidWmpVersionException(SerializationInfo info, StreamingContext context) : base(info, context) {} #pragma warning restore SYSLIB0051 // Type or member is obsolete ///<summary> /// Constructor ///</summary> ///<param name="message"> /// Exception message ///</param> ///<param name="innerException"> /// Inner exception ///</param> public InvalidWmpVersionException(string message, Exception innerException) : base(message, innerException) {} } }