共用方式為


SqlSmoObject.IAlienObject.GetPropertyValue 方法

Gets the value of the specified property.

命名空間:  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 支援明確介面實作的使用,但不支援新介面實作的宣告。

參數

  • propertyType
    型別:System.Type
    The type of the property.

傳回值

型別:System.Object
A Object which represents the value of the property.

實作

IAlienObject.GetPropertyValue(String, Type)

請參閱

參考

SqlSmoObject 類別

Microsoft.SqlServer.Management.Smo 命名空間