DomainServiceDescriptionProvider.GetOperationAttributes 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.]

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)

public virtual AttributeCollection GetOperationAttributes(
	DomainOperationEntry operation


Type: System.ServiceModel.DomainServices.Server.DomainOperationEntry
The operation to return attributes for.

Return Value

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


operation is null.

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.