共用方式為


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
)

參數

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