DeploymentXmlException 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.
Creates an instance of a DeploymentXmlException object.
Overloads
DeploymentXmlException() |
Creates an instance of a DeploymentXmlException object without setting underlying member values. |
DeploymentXmlException(String) |
Creates an instance of a DeploymentXmlException object and sets the message specified. |
DeploymentXmlException(SerializationInfo, StreamingContext) |
Creates an instance of a DeploymentXmlException object from serialized data.. |
DeploymentXmlException(String, Exception) |
Creates an instance of a DeploymentXmlException object with the specified message and a reference to the inner exception that is the cause of this exception. |
DeploymentXmlException(XPathNavigator, String, Exception) |
Creates an instance of a DeploymentXmlException object with an XPathNavigator, the XML file the exception was caused by and a reference to the inner exception that is the cause of this exception. |
DeploymentXmlException(XPathNavigator, String, String, Object) |
Creates an instance of a DeploymentXmlException object with an XPathNavigator, the XML file the exception was caused by, the message format, and the value that caused the exception. |
DeploymentXmlException()
Creates an instance of a DeploymentXmlException object without setting underlying member values.
public:
DeploymentXmlException();
public DeploymentXmlException ();
Public Sub New ()
Remarks
The default constructor is required for serialization.
Applies to
DeploymentXmlException(String)
Creates an instance of a DeploymentXmlException object and sets the message specified.
public:
DeploymentXmlException(System::String ^ message);
public DeploymentXmlException (string message);
new Microsoft.Web.Deployment.DeploymentXmlException : string -> Microsoft.Web.Deployment.DeploymentXmlException
Public Sub New (message As String)
Parameters
- message
- String
Applies to
DeploymentXmlException(SerializationInfo, StreamingContext)
Creates an instance of a DeploymentXmlException object from serialized data..
protected:
DeploymentXmlException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DeploymentXmlException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Web.Deployment.DeploymentXmlException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Web.Deployment.DeploymentXmlException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
The SerializationInfo that holds the serialized object data about the exception being thrown.
- context
- StreamingContext
The StreamingContext that contains contextual information about the source or destination.
Applies to
DeploymentXmlException(String, Exception)
Creates an instance of a DeploymentXmlException object with the specified message and a reference to the inner exception that is the cause of this exception.
public:
DeploymentXmlException(System::String ^ message, Exception ^ inner);
public DeploymentXmlException (string message, Exception inner);
new Microsoft.Web.Deployment.DeploymentXmlException : string * Exception -> Microsoft.Web.Deployment.DeploymentXmlException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
A message that describes the current exception.
- inner
- Exception
The exception that is the cause of the current exception, or a null
reference (Nothing
in Visual Basic) if no inner exception is specified.
Applies to
DeploymentXmlException(XPathNavigator, String, Exception)
Creates an instance of a DeploymentXmlException object with an XPathNavigator, the XML file the exception was caused by and a reference to the inner exception that is the cause of this exception.
public:
DeploymentXmlException(System::Xml::XPath::XPathNavigator ^ navigator, System::String ^ fileName, Exception ^ inner);
public DeploymentXmlException (System.Xml.XPath.XPathNavigator navigator, string fileName, Exception inner);
new Microsoft.Web.Deployment.DeploymentXmlException : System.Xml.XPath.XPathNavigator * string * Exception -> Microsoft.Web.Deployment.DeploymentXmlException
Public Sub New (navigator As XPathNavigator, fileName As String, inner As Exception)
Parameters
- navigator
- XPathNavigator
An XPathNavigator for the XML document being evaluated when the exception was thrown.
- fileName
- String
The name of the file that was being evaluated when the exception was thrown.
- inner
- Exception
The exception that is the cause of the current exception, or a null
reference (Nothing
in Visual Basic) if no inner exception is specified.
Applies to
DeploymentXmlException(XPathNavigator, String, String, Object)
Creates an instance of a DeploymentXmlException object with an XPathNavigator, the XML file the exception was caused by, the message format, and the value that caused the exception.
public:
DeploymentXmlException(System::Xml::XPath::XPathNavigator ^ navigator, System::String ^ fileName, System::String ^ messageFormat, System::Object ^ value);
public DeploymentXmlException (System.Xml.XPath.XPathNavigator navigator, string fileName, string messageFormat, object value);
new Microsoft.Web.Deployment.DeploymentXmlException : System.Xml.XPath.XPathNavigator * string * string * obj -> Microsoft.Web.Deployment.DeploymentXmlException
Public Sub New (navigator As XPathNavigator, fileName As String, messageFormat As String, value As Object)
Parameters
- navigator
- XPathNavigator
An XPathNavigator for the XML document being evaluated when the exception was thrown.
- fileName
- String
The name of the file that was being evaluated when the exception was thrown.
- messageFormat
- String
The unformatted message used along with value
to create an exception message. This format uses standard .NET string formatting.
- value
- Object
The value that was found when evaluating and validating the XML found in fileName
.
Remarks
This exception is thrown when a value is found in an XML document that was not expected.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for