PropertyNotSetException PropertyNotSetException PropertyNotSetException Constructors

Definition

Overloads

PropertyNotSetException() PropertyNotSetException() PropertyNotSetException()

Initializes a new instance of the PropertyNotSetException class.

PropertyNotSetException(String) PropertyNotSetException(String) PropertyNotSetException(String)

Initializes a new instance of the PropertyNotSetException class with the specified property.

PropertyNotSetException(String, Exception) PropertyNotSetException(String, Exception) PropertyNotSetException(String, Exception)

Initializes a new instance of the PropertyNotSetException class with the specified message and specified inner exception.

PropertyNotSetException() PropertyNotSetException() PropertyNotSetException()

Initializes a new instance of the PropertyNotSetException class.

public:
 PropertyNotSetException();
public PropertyNotSetException ();
Public Sub New ()

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

PropertyNotSetException(String) PropertyNotSetException(String) PropertyNotSetException(String)

Initializes a new instance of the PropertyNotSetException class with the specified property.

public:
 PropertyNotSetException(System::String ^ propertyName);
public PropertyNotSetException (string propertyName);
Public Sub New (propertyName As String)
Parameters
propertyName
String String String

A String value that specifies the name of the property is not set.

Examples

Handling SMO Exceptions

PropertyNotSetException(String, Exception) PropertyNotSetException(String, Exception) PropertyNotSetException(String, Exception)

Initializes a new instance of the PropertyNotSetException class with the specified message and specified inner exception.

public:
 PropertyNotSetException(System::String ^ message, Exception ^ innerException);
public PropertyNotSetException (string message, Exception innerException);
Public Sub New (message As String, innerException As Exception)
Parameters
message
String String String

A String value that specifies the message string for the Property Cannot Be Retrieved exception.

innerException
Exception Exception Exception

An Exception object that specifies the inner exception for the Property Cannot Be Retrieved exception.

Examples

Handling SMO Exceptions

Applies to