共用方式為


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 命名空間