DomainServiceDescriptionProviderAttribute.CreateProvider 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.]
Creates an instance of the DomainServiceDescriptionProvider class.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Overridable Function CreateProvider ( _
domainServiceType As Type, _
parent As DomainServiceDescriptionProvider _
) As DomainServiceDescriptionProvider
'Usage
Dim instance As DomainServiceDescriptionProviderAttribute
Dim domainServiceType As Type
Dim parent As DomainServiceDescriptionProvider
Dim returnValue As DomainServiceDescriptionProvider
returnValue = instance.CreateProvider(domainServiceType, _
parent)
public virtual DomainServiceDescriptionProvider CreateProvider(
Type domainServiceType,
DomainServiceDescriptionProvider parent
)
public:
virtual DomainServiceDescriptionProvider^ CreateProvider(
Type^ domainServiceType,
DomainServiceDescriptionProvider^ parent
)
abstract CreateProvider :
domainServiceType:Type *
parent:DomainServiceDescriptionProvider -> DomainServiceDescriptionProvider
override CreateProvider :
domainServiceType:Type *
parent:DomainServiceDescriptionProvider -> DomainServiceDescriptionProvider
public function CreateProvider(
domainServiceType : Type,
parent : DomainServiceDescriptionProvider
) : DomainServiceDescriptionProvider
Parameters
- domainServiceType
Type: System.Type
The DomainService type to create a description provider for.
- parent
Type: System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider
The parent provider. May be nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.ServiceModel.DomainServices.Server.DomainServiceDescriptionProvider
The description provider.