PropertyReadOnlyException 构造函数 (String)

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

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub New ( _
    propertyName As String _
)
用法
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
)

参数

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

示例

处理 SMO 异常

请参阅

参考

PropertyReadOnlyException 类

PropertyReadOnlyException 重载

Microsoft.SqlServer.Management.Smo 命名空间