共用方式為


IAlienObject.GetPropertyType 方法

取得指定的屬性類型。

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

語法

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

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

參數

傳回值

型別:System. . :: . .Type
表示指定之屬性類型的 Type

實作

IAlienObject. . :: . .GetPropertyType(String)