Entity.CanInvokeAction 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 a value indicating whether the specified action can currently be invoked.
Namespace: System.ServiceModel.DomainServices.Client
Assembly: System.ServiceModel.DomainServices.Client (in System.ServiceModel.DomainServices.Client.dll)
Syntax
'Declaration
Protected Friend Function CanInvokeAction ( _
name As String _
) As Boolean
'Usage
Dim name As String
Dim returnValue As Boolean
returnValue = Me.CanInvokeAction(name)
protected internal bool CanInvokeAction(
string name
)
protected public:
bool CanInvokeAction(
String^ name
)
member CanInvokeAction :
name:string -> bool
function CanInvokeAction(
name : String
) : boolean
Parameters
- name
Type: System.String
The name of the action corresponding to a custom method.
Return Value
Type: System.Boolean
true if the specified action can be invoked; otherwise, false.