DomainServiceDescriptionProvider.GetTypeDescriptor Method

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Gets the TypeDescriptor for the specified type, using the specified parent descriptor as the base.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Overridable Function GetTypeDescriptor ( _
    type As Type, _
    parent As ICustomTypeDescriptor _
) As ICustomTypeDescriptor
'Usage
Dim instance As DomainServiceDescriptionProvider
Dim type As Type
Dim parent As ICustomTypeDescriptor
Dim returnValue As ICustomTypeDescriptor

returnValue = instance.GetTypeDescriptor(type, _
    parent)
public virtual ICustomTypeDescriptor GetTypeDescriptor(
    Type type,
    ICustomTypeDescriptor parent
)
public:
virtual ICustomTypeDescriptor^ GetTypeDescriptor(
    Type^ type, 
    ICustomTypeDescriptor^ parent
)
abstract GetTypeDescriptor : 
        type:Type * 
        parent:ICustomTypeDescriptor -> ICustomTypeDescriptor 
override GetTypeDescriptor : 
        type:Type * 
        parent:ICustomTypeDescriptor -> ICustomTypeDescriptor 
public function GetTypeDescriptor(
    type : Type, 
    parent : ICustomTypeDescriptor
) : ICustomTypeDescriptor

Parameters

  • type
    Type: System.Type
    The type to return a descriptor for.

Return Value

Type: System.ComponentModel.ICustomTypeDescriptor
The TypeDescriptor for the specified type.

Remarks

Overrides should call the base method to ensure the TypeDescriptor objects are chained properly.

See Also

Reference

DomainServiceDescriptionProvider Class

System.ServiceModel.DomainServices.Server Namespace