ElementNotAvailableException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ElementNotAvailableException class.
Overloads
ElementNotAvailableException() |
Initializes a new instance of the ElementNotAvailableException class. |
ElementNotAvailableException(Exception) |
Initializes a new instance of the ElementNotAvailableException class with a reference to the inner exception that caused this exception. |
ElementNotAvailableException(String) |
Initializes a new instance of the ElementNotAvailableException class with a specified error message. |
ElementNotAvailableException(SerializationInfo, StreamingContext) |
Initializes a new instance of the ElementNotAvailableException class with serialization information. |
ElementNotAvailableException(String, Exception) |
Initializes a new instance of the ElementNotAvailableException class with a specified error message and a reference to the inner exception that caused this exception. |
ElementNotAvailableException()
Initializes a new instance of the ElementNotAvailableException class.
public:
ElementNotAvailableException();
public ElementNotAvailableException ();
Public Sub New ()
Applies to
ElementNotAvailableException(Exception)
Initializes a new instance of the ElementNotAvailableException class with a reference to the inner exception that caused this exception.
public:
ElementNotAvailableException(Exception ^ innerException);
public ElementNotAvailableException (Exception innerException);
new System.Windows.Automation.ElementNotAvailableException : Exception -> System.Windows.Automation.ElementNotAvailableException
Public Sub New (innerException As Exception)
Parameters
- innerException
- Exception
The exception that caused this exception.
Applies to
ElementNotAvailableException(String)
Initializes a new instance of the ElementNotAvailableException class with a specified error message.
public:
ElementNotAvailableException(System::String ^ message);
public ElementNotAvailableException (string message);
new System.Windows.Automation.ElementNotAvailableException : string -> System.Windows.Automation.ElementNotAvailableException
Public Sub New (message As String)
Parameters
- message
- String
The description of the error.
Applies to
ElementNotAvailableException(SerializationInfo, StreamingContext)
Initializes a new instance of the ElementNotAvailableException class with serialization information.
protected:
ElementNotAvailableException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ElementNotAvailableException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Windows.Automation.ElementNotAvailableException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Windows.Automation.ElementNotAvailableException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Data needed to serialize or deserialize the object.
- context
- StreamingContext
The source and destination of the serialized stream.
Applies to
ElementNotAvailableException(String, Exception)
Initializes a new instance of the ElementNotAvailableException class with a specified error message and a reference to the inner exception that caused this exception.
public:
ElementNotAvailableException(System::String ^ message, Exception ^ innerException);
public ElementNotAvailableException (string message, Exception innerException);
new System.Windows.Automation.ElementNotAvailableException : string * Exception -> System.Windows.Automation.ElementNotAvailableException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The description of the error.
- innerException
- Exception
The exception that caused this exception.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應