共用方式為


SqlSmoObject.IAlienObject.GetPropertyType 方法

Gets the type of the specified property.

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

參數

  • propertyName
    型別:System.String
    The name of the property to get the type of.

傳回值

型別:System.Type
A Type which represents the type of the specified property.

實作

IAlienObject.GetPropertyType(String)

請參閱

參考

SqlSmoObject 類別

Microsoft.SqlServer.Management.Smo 命名空間