共用方式為


PropertyCannotBeRetrievedException 建構函式 (String, Object)

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

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

語法

'宣告
Public Sub New ( _
    propertyName As String, _
    failedObject As Object _
)
'用途
Dim propertyName As String 
Dim failedObject As Object 

Dim instance As New PropertyCannotBeRetrievedException(propertyName, _
    failedObject)
public PropertyCannotBeRetrievedException(
    string propertyName,
    Object failedObject
)
public:
PropertyCannotBeRetrievedException(
    String^ propertyName, 
    Object^ failedObject
)
new : 
        propertyName:string * 
        failedObject:Object -> PropertyCannotBeRetrievedException
public function PropertyCannotBeRetrievedException(
    propertyName : String, 
    failedObject : Object
)

參數

  • propertyName
    型別:System.String
    A String value that specifies the name of the Property Cannot Be Retrieved exception.
  • failedObject
    型別:System.Object
    An Object system object value that specifies the object that owns the Property Cannot Be Retrieved exception.

範例

處理 SMO 例外狀況

請參閱

參考

PropertyCannotBeRetrievedException 類別

PropertyCannotBeRetrievedException 多載

Microsoft.SqlServer.Management.Smo 命名空間