DomainServiceDescription.GetCustomMethod Method

WCF RIA Services

[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)

public DomainOperationEntry GetCustomMethod(
	Type entityType,
	string methodName


Type: System.Type
The entity type the custom method is associated with.
Type: System.String
The name of the custom method.

Return Value

Type: System.ServiceModel.DomainServices.Server.DomainOperationEntry
The DomainOperationEntry for the custom method, or null if one is not found.