Aracılığıyla paylaş


ElementTypeDescriptionProvider.GetTypeDescriptor Yöntem (Type, Object)

Verilen tür ve nesne için bir özel tür tanımlayıcısı alır.

Ad alanı:  Microsoft.VisualStudio.Modeling.Design
Derleme:  Microsoft.VisualStudio.Modeling.Sdk.11.0 (Microsoft.VisualStudio.Modeling.Sdk.11.0.dll içinde)

Sözdizimi

'Bildirim
Public Overrides NotOverridable Function GetTypeDescriptor ( _
    objectType As Type, _
    instance As Object _
) As ICustomTypeDescriptor
public override sealed ICustomTypeDescriptor GetTypeDescriptor(
    Type objectType,
    Object instance
)

Parametreler

  • objectType
    Tür: System.Type
    Türü tanımlayıcısı almak nesnenin türü.
  • instance
    Tür: System.Object
    Nesnenin türü tanımlayıcısı almak.

Dönüş Değeri

Tür: System.ComponentModel.ICustomTypeDescriptor
Verilen tür ve nesne için bir özel tür tanımlayıcısı.

Notlar

instance Olan nullnull başvuru (Visual Basic'te Nothing), bu yöntem bir özel tür tanımlayıcısı alır sonra objectType.

.NET Framework Güvenliği

Ayrıca bkz.

Başvuru

ElementTypeDescriptionProvider Sınıf

GetTypeDescriptor Fazla Yük

Microsoft.VisualStudio.Modeling.Design Ad Alanı