PropertyReadOnlyException Constructor (String)

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

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

Syntax

'Declaration
Public Sub New ( _
    propertyName As String _
)
'Usage
Dim propertyName As String 

Dim instance As New PropertyReadOnlyException(propertyName)
public PropertyReadOnlyException(
    string propertyName
)
public:
PropertyReadOnlyException(
    String^ propertyName
)
new : 
        propertyName:string -> PropertyReadOnlyException
public function PropertyReadOnlyException(
    propertyName : String
)

Parameters

  • propertyName
    Type: System.String
    A String value that specifies the name of the property that is read-only.

Examples

Handling SMO Exceptions

See Also

Reference

PropertyReadOnlyException Class

PropertyReadOnlyException Overload

Microsoft.SqlServer.Management.Smo Namespace