DomainServiceDescription.IsOperationSupported 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 a value that indicates whether the specified change operation is supported for the specified type.
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)
Syntax
'Declaration
Public Function IsOperationSupported ( _
entityType As Type, _
operationType As DomainOperation _
) As Boolean
'Usage
Dim instance As DomainServiceDescription
Dim entityType As Type
Dim operationType As DomainOperation
Dim returnValue As Boolean
returnValue = instance.IsOperationSupported(entityType, _
operationType)
public bool IsOperationSupported(
Type entityType,
DomainOperation operationType
)
public:
bool IsOperationSupported(
Type^ entityType,
DomainOperation operationType
)
member IsOperationSupported :
entityType:Type *
operationType:DomainOperation -> bool
public function IsOperationSupported(
entityType : Type,
operationType : DomainOperation
) : boolean
Parameters
- entityType
Type: System.Type
The entity type to check.
- operationType
Type: System.ServiceModel.DomainServices.Server.DomainOperation
The operation type to check. Must be Insert, Update, or Delete.
Return Value
Type: System.Boolean
true if the operation is supported; otherwise, false.
Remarks
If the type is the child of one or more composition relationships, this method accounts for parent support when determining if the operation is supported.