MessageDescription(String, MessageDirection) 构造函数

定义

用指定的操作和方向初始化 MessageDescription 类的新实例。

public:
 MessageDescription(System::String ^ action, System::ServiceModel::Description::MessageDirection direction);
public MessageDescription (string action, System.ServiceModel.Description.MessageDirection direction);
new System.ServiceModel.Description.MessageDescription : string * System.ServiceModel.Description.MessageDirection -> System.ServiceModel.Description.MessageDescription
Public Sub New (action As String, direction As MessageDirection)

参数

action
String

标识消息意图的 SOAP 消息的操作参数。

direction
MessageDirection

如果该消息为传入消息,则为 Input;如果该消息为传出消息,则为 Output

例外

direction 既不是 Input 也不是 Output

适用于