共用方式為


PropertyWriteException 建構函式 (String, String, String, String)

Initializes a new instance of the PropertyWriteException class with the specified property name, object kind, object name, and reason.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Sub New ( _
    propertyName As String, _
    objectKind As String, _
    objectName As String, _
    reason As String _
)
'用途
Dim propertyName As String 
Dim objectKind As String 
Dim objectName As String 
Dim reason As String 

Dim instance As New PropertyWriteException(propertyName, _
    objectKind, objectName, reason)
public PropertyWriteException(
    string propertyName,
    string objectKind,
    string objectName,
    string reason
)
public:
PropertyWriteException(
    String^ propertyName, 
    String^ objectKind, 
    String^ objectName, 
    String^ reason
)
new : 
        propertyName:string * 
        objectKind:string * 
        objectName:string * 
        reason:string -> PropertyWriteException
public function PropertyWriteException(
    propertyName : String, 
    objectKind : String, 
    objectName : String, 
    reason : String
)

參數

範例

處理 SMO 例外狀況

請參閱

參考

PropertyWriteException 類別

PropertyWriteException 多載

Microsoft.SqlServer.Management.Smo 命名空間