Udostępnij za pośrednictwem


Metoda SqlSmoObject.GetChildType

Pobiera typ podrzędność element.

Przestrzeń nazw:  Microsoft.SqlServer.Management.Smo
Zestaw:  Microsoft.SqlServer.Smo (w Microsoft.SqlServer.Smo.dll)

Składnia

'Deklaracja
Public Shared Function GetChildType ( _
    objectName As String, _
    parentName As String _
) As Type
'Użycie
Dim objectName As String
Dim parentName As String
Dim returnValue As Type

returnValue = SqlSmoObject.GetChildType(objectName, _
    parentName)
public static Type GetChildType(
    string objectName,
    string parentName
)
public:
static Type^ GetChildType(
    String^ objectName, 
    String^ parentName
)
static member GetChildType : 
        objectName:string * 
        parentName:string -> Type 
public static function GetChildType(
    objectName : String, 
    parentName : String
) : Type

Parametry

  • objectName
    Typ: System.String
    Określa nazwę obiektu, aby uzyskać wartość ciąg.
  • parentName
    Typ: System.String
    Wartość ciąg Określa nazwę obiektu nadrzędnego.

Wartość zwracana

Typ: System.Type
A Type obiektu.