Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PropertyReadOnlyException Constructor

 

Applies To: SQL Server 2016 Preview

Initializes a new instance of the PropertyReadOnlyException class.

Namespace:   Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

NameDescription
System_CAPS_pubmethodPropertyReadOnlyException()

Initializes a new instance of the PropertyReadOnlyException class.

System_CAPS_pubmethodPropertyReadOnlyException(String)

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

System_CAPS_pubmethodPropertyReadOnlyException(String, Exception)

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

Return to top

PropertyReadOnlyException Constructor ()

Initializes a new instance of the PropertyReadOnlyException class.

public PropertyReadOnlyException()

The default constructor initializes any fields to their default values.

Return to top

PropertyReadOnlyException Constructor (String)

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

public PropertyReadOnlyException(
	string propertyName
)

Parameters

propertyName
Type: System.String

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

Return to top

PropertyReadOnlyException Constructor (String, Exception)

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

public PropertyReadOnlyException(
	string message,
	Exception innerException
)

Parameters

message
Type: System.String

A String value that specifies the message string for the Property Read Only exception.

innerException
Type: System.Exception

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

Return to top
Show:
© 2015 Microsoft