DomainServiceDescriptionProvider.GetOperationAttributes 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 collection of attributes for the specified operation.

Namespace:  System.ServiceModel.DomainServices.Server
Assembly:  System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.dll)

Syntax

'Declaration
Public Overridable Function GetOperationAttributes ( _
    operation As DomainOperationEntry _
) As AttributeCollection
'Usage
Dim instance As DomainServiceDescriptionProvider
Dim operation As DomainOperationEntry
Dim returnValue As AttributeCollection

returnValue = instance.GetOperationAttributes(operation)
public virtual AttributeCollection GetOperationAttributes(
    DomainOperationEntry operation
)
public:
virtual AttributeCollection^ GetOperationAttributes(
    DomainOperationEntry^ operation
)
abstract GetOperationAttributes : 
        operation:DomainOperationEntry -> AttributeCollection 
override GetOperationAttributes : 
        operation:DomainOperationEntry -> AttributeCollection 
public function GetOperationAttributes(
    operation : DomainOperationEntry
) : AttributeCollection

Parameters

Return Value

Type: System.ComponentModel.AttributeCollection
The collection of attributes for the specified operation.

Exceptions

Exception Condition
ArgumentNullException

operation is nulla null reference (Nothing in Visual Basic).

Remarks

This method is called after the DomainServiceDescription has been created, and allows additional metadata to be added to the specified operation. Overrides should call the base method to get the initial set of attributes, and any additional attributes should be added to those.

See Also

Reference

DomainServiceDescriptionProvider Class

System.ServiceModel.DomainServices.Server Namespace