DomainServiceDescription.GetCustomMethod 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.]
Returns the DomainService custom method with the specified name associated with the specified entity type.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Function GetCustomMethod ( _
entityType As Type, _
methodName As String _
) As DomainOperationEntry
'Usage
Dim instance As DomainServiceDescription
Dim entityType As Type
Dim methodName As String
Dim returnValue As DomainOperationEntry
returnValue = instance.GetCustomMethod(entityType, _
methodName)
public DomainOperationEntry GetCustomMethod(
Type entityType,
string methodName
)
public:
DomainOperationEntry^ GetCustomMethod(
Type^ entityType,
String^ methodName
)
member GetCustomMethod :
entityType:Type *
methodName:string -> DomainOperationEntry
public function GetCustomMethod(
entityType : Type,
methodName : String
) : DomainOperationEntry
Parameters
- entityType
Type: System.Type
The entity type the custom method is associated with.
- methodName
Type: System.String
The name of the custom method.
Return Value
Type: System.ServiceModel.DomainServices.Server.DomainOperationEntry
The DomainOperationEntry for the custom method, or nulla null reference (Nothing in Visual Basic) if one is not found.