IsServiceOperationAdvertisable Method
Determines whether a given service operation (ServiceOperation) is advertisable or not.
Namespace: System.Data.Services.Providers
Assembly: Microsoft.Data.Services (in Microsoft.Data.Services.dll)
Syntax
'Declaration
Function IsServiceOperationAdvertisable ( _
resourceInstance As Object, _
serviceOperation As ServiceOperation, _
ByRef operationToSerialize As ODataOperation _
) As Boolean
'Usage
Dim instance As IDataServiceQueryProvider2
Dim resourceInstance As Object
Dim serviceOperation As ServiceOperation
Dim operationToSerialize As ODataOperation
Dim returnValue As Boolean
returnValue = instance.IsServiceOperationAdvertisable(resourceInstance, _
serviceOperation, operationToSerialize)
bool IsServiceOperationAdvertisable(
Object resourceInstance,
ServiceOperation serviceOperation,
ref ODataOperation operationToSerialize
)
bool IsServiceOperationAdvertisable(
Object^ resourceInstance,
ServiceOperation^ serviceOperation,
ODataOperation^% operationToSerialize
)
abstract IsServiceOperationAdvertisable :
resourceInstance:Object *
serviceOperation:ServiceOperation *
operationToSerialize:ODataOperation byref -> bool
function IsServiceOperationAdvertisable(
resourceInstance : Object,
serviceOperation : ServiceOperation,
operationToSerialize : ODataOperation
) : boolean
Parameters
- resourceInstance
Type: System..::..Object
Instance of the resource to which the service operation is bound.
- serviceOperation
Type: System.Data.Services.Providers..::..ServiceOperation
Service operation to be exposed.
- operationToSerialize
Type: Microsoft.Data.OData..::..ODataOperation%
The ODataOperation to be serialized.
Return Value
Type: System..::..Boolean
True when the service operation should be exposed; otherwise false.