LogicalMethodTypes LogicalMethodTypes LogicalMethodTypes LogicalMethodTypes Enum

定义

指定调用 XML Web services 方法的方式。Specifies how the XML Web service method was invoked.

public enum class LogicalMethodTypes
public enum LogicalMethodTypes
type LogicalMethodTypes = 
Public Enum LogicalMethodTypes
继承
LogicalMethodTypesLogicalMethodTypesLogicalMethodTypesLogicalMethodTypes

字段

Async Async Async Async 2

XML Web services 方法被异步调用。The XML Web service method is invoked asynchronously.

Sync Sync Sync Sync 1

XML Web services 方法被同步调用。The XML Web service method is invoked synchronously.

示例

// Create a synchronous 'LogicalMethodInfo' instance.
array<MethodInfo^>^temparray = {myMethodInfo};
LogicalMethodInfo^ myLogicalMethodInfo = (LogicalMethodInfo::Create( temparray, LogicalMethodTypes::Sync ))[ 0 ];
// Create a synchronous 'LogicalMethodInfo' instance.
LogicalMethodInfo myLogicalMethodInfo = 
   (LogicalMethodInfo.Create(new MethodInfo[] {myMethodInfo}, 
                             LogicalMethodTypes.Sync))[0];
' Create a synchronous 'LogicalMethodInfo' instance.
Dim myLogicalMethodInfo As LogicalMethodInfo = _
           LogicalMethodInfo.Create(New MethodInfo() {myMethodInfo}, LogicalMethodTypes.Sync)(0)

适用于

另请参阅