PolicyConversionContext.GetOperationBindingAssertions 方法

定义

返回指定操作的策略断言的集合。

public:
 abstract System::ServiceModel::Description::PolicyAssertionCollection ^ GetOperationBindingAssertions(System::ServiceModel::Description::OperationDescription ^ operation);
public abstract System.ServiceModel.Description.PolicyAssertionCollection GetOperationBindingAssertions (System.ServiceModel.Description.OperationDescription operation);
abstract member GetOperationBindingAssertions : System.ServiceModel.Description.OperationDescription -> System.ServiceModel.Description.PolicyAssertionCollection
Public MustOverride Function GetOperationBindingAssertions (operation As OperationDescription) As PolicyAssertionCollection

参数

operation
OperationDescription

为其添加策略断言或为其配置绑定的 OperationDescription 对象。

返回

PolicyAssertionCollection

操作的策略断言。

注解

GetOperationBindingAssertions 返回的集合不是副本。 您可以在必要时添加和移除断言。

适用于