Share via


IAlienObject.GetPropertyValue 方法

取得指定的屬性值。

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

語法

'宣告
Private Function GetPropertyValue ( _
    propertyName As String, _
    propertyType As Type _
) As Object Implements IAlienObject.GetPropertyValue
'用途
Dim instance As SqlSmoObject
Dim propertyName As String
Dim propertyType As Type
Dim returnValue As Object

returnValue = CType(instance, IAlienObject).GetPropertyValue(propertyName, _
    propertyType)
Object IAlienObject.GetPropertyValue(
    string propertyName,
    Type propertyType
)
private:
virtual Object^ GetPropertyValue(
    String^ propertyName, 
    Type^ propertyType
) sealed = IAlienObject::GetPropertyValue
private abstract GetPropertyValue : 
        propertyName:string * 
        propertyType:Type -> Object 
private override GetPropertyValue : 
        propertyName:string * 
        propertyType:Type -> Object 
JScript 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

傳回值

型別:System. . :: . .Object
表示屬性值的 Object

實作

IAlienObject. . :: . .GetPropertyValue(String, Type)