API Reference
Class
PromptUnavailableException
A prompt needed an answer in a session where nobody can answer (CI, redirected input, -NonInteractive) and has no default. The message names the parameter to pass, when the prompt knows it.
Inheritance
- InvalidOperationException
- PromptUnavailableException
Constructors
PromptUnavailableException 3 overloads
public PromptUnavailableException(String message) #Creates the exception with a message.
Parameters
- message System.String
- The message.
public PromptUnavailableException(String message, Exception innerException) #Creates the exception with an inner exception.
Parameters
- message System.String
- The message.
- innerException System.Exception
- The cause.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
public virtual Void GetObjectData(SerializationInfo info, StreamingContext context) #Returns:
VoidInherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
public String? Parameter { get; internal set; } #The parameter that would have supplied the value, if known.
Inherited Properties
public MethodBase? TargetSite { get; } #Inherited from Exception
public virtual String Message { get; } #Inherited from Exception
public virtual IDictionary Data { get; } #Inherited from Exception
public Exception? InnerException { get; } #Inherited from Exception
public virtual String? HelpLink { get; set; } #Inherited from Exception
public virtual String? Source { get; set; } #Inherited from Exception
public Int32 HResult { get; set; } #Inherited from Exception
public virtual String? StackTrace { get; } #Inherited from Exception