PropertyReadOnlyException PropertyReadOnlyException PropertyReadOnlyException Constructors

Definition

Overloads

PropertyReadOnlyException() PropertyReadOnlyException() PropertyReadOnlyException()

Initializes a new instance of the PropertyReadOnlyException class.

PropertyReadOnlyException(String) PropertyReadOnlyException(String) PropertyReadOnlyException(String)

Initializes a new instance of the PropertyReadOnlyException class for the specified property.

PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception)

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

PropertyReadOnlyException() PropertyReadOnlyException() PropertyReadOnlyException()

Initializes a new instance of the PropertyReadOnlyException class.

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

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

PropertyReadOnlyException(String) PropertyReadOnlyException(String) PropertyReadOnlyException(String)

Initializes a new instance of the PropertyReadOnlyException class for the specified property.

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

A String value that specifies the name of the property that is read-only.

Examples

Handling SMO Exceptions

PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception)

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

public:
 PropertyReadOnlyException(System::String ^ message, Exception ^ innerException);
public PropertyReadOnlyException (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 Read Only exception.

innerException
Exception Exception Exception

An Exception system object value that specifies the inner exception for the Property Read Only exception.

Examples

Handling SMO Exceptions

Applies to